Opened 8 years ago

Last modified 6 years ago

#42 closed defect

ModelGeometry division by 0.0 for a single ellipsoid shape — at Version 1

Reported by: Maciej Komosinski Owned by:
Priority: major Milestone:
Component: Framsticks core Version:
Keywords: Cc:

Description (last modified by Maciej Komosinski)

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 (1)

comment:1 Changed 8 years ago by Maciej Komosinski

Description: modified (diff)
Note: See TracTickets for help on using tickets.