Opened 10 years ago
Last modified 9 years ago
#42 closed defect
ModelGeometry division by 0.0 for a single ellipsoid shape — at Initial Version
Reported by: | Maciej Komosinski | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Framsticks core | Version: | |
Keywords: | Cc: |
Description
For the following structure/genotype:
Simulator.print(ModelGeometry.forModel(Model.newFromString("//0\np:sh=1\n")).area());
in externalAreaOfSurface(), in the second iteration of
while (surface.tryGetNext(point))
In function
void MeshBuilder::EllipsoidSurface::findNextAreaEdgeAndPhase()
There is div by 0.0 (invalid FP operation) because edge.x and edge.z are 0.0:
limit.z = edge.z*edge.z / sqrt(edge.x*edge.x + edge.z*edge.z);
Note: See
TracTickets for help on using
tickets.