Code Monkey home page Code Monkey logo

sketchsolve's People

Contributors

jonpry avatar

Watchers

 avatar  avatar

sketchsolve's Issues

Reference after deletion

Hello

Your project is very interesting.  Thanks

Solve.cpp
510:   delete origSolution; 

530:   *x[i]=origSolution[i]; 

It seems to cause no harm but origSolution is referenced after deleted.


Original issue reported on code.google.com by [email protected] on 7 Jul 2009 at 6:36

Want to port to C#

Hi,

Apologies in advance for posting this here, couldn't find another way to
send the project owner a note. Could you shoot me an e-mail at
[email protected]? I want to do geometric constraint solving in C#.

Thanks!

Wout

Original issue reported on code.google.com by [email protected] on 15 Jun 2009 at 2:31

Memory leak


Solve.cpp  following variables are alloced but not deleted.

deltaX;
gamma;
gradnew;

Original issue reported on code.google.com by [email protected] on 9 Jul 2009 at 5:19

error can be negative.

Solve.cpp  552-567  calc.c
 The following line, the calculated error can be negative, 
 I think that the error should be always positive.

      if(cons[i].type==P2PDistance) 
         { 
                 error+= (P1_x - P2_x) * (P1_x - P2_x) + (P1_y - P2_y) * 
(P1_y - P2_y) - distance * distance; 

         } 

         if(cons[i].type==P2PDistanceVert) 
         { 
                 error+= (P1_y - P2_y) * (P1_y - P2_y) - distance * 
distance; 
         } 

         if(cons[i].type==P2PDistanceHorz) 
         { 
                 error+= (P1_x - P2_x) * (P1_x - P2_x) - distance * 
distance; 
         } 

 should be 

     if(cons[i].type==P2PDistance) 
         { 
       temp = _hypot(P1_x - P2_x,P1_y - P2_y) - distance;
           error += temp*temp;
         } 

         if(cons[i].type==P2PDistanceVert) 
         { 
        temp = fabs(P1_y - P2_y) - distance;
        error += temp*temp;
         } 

         if(cons[i].type==P2PDistanceHorz) 
         { 
        temp = fabs(P1_x - P2_x) - distance;
        error += temp*temp;
         } 

Original issue reported on code.google.com by [email protected] on 9 Jul 2009 at 6:04

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.