#42 closed defect (fixed)
ModelGeometry division by 0.0 for a single ellipsoid shape
Reported by: | Maciej Komosinski | Owned by: | oriona |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Framsticks core | Version: | |
Keywords: | Cc: |
Description (last modified by )
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);
Similar defect to fix: numerous sqrt: DOMAIN error
exceptions when running geometry unit tests.
Change History (3)
comment:1 Changed 10 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 8 years ago by
Owner: | set to oriona |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In 539: