use of cbit.vcell.geometry.surface.IcoSphere in project vcell by virtualcell.
the class SphereTestFixture method getTestSphere.
/**
* @return test spherical tessellation
* @throws ProgrammingException if not {@link #isSphereTest()}
*/
public List<? extends Polygon> getTestSphere() {
if (isSphereTest()) {
IcoSphere icoSphere = IcoSphere.get();
List<PolygonImmutable> tessel = icoSphere.getTessellation(level);
ThreeSpacePoint centerPoint = new ThreeSpacePointImmutable(center[0], center[1], center[2]);
List<Triangle> tl = Triangle.scale(tessel, radius, centerPoint);
return tl;
}
throw new ProgrammingException("getTestSphere called on non test Simulation");
}
Aggregations