Public Member Functions | |
| InSphereResult | __call__ (self, Vector3d d) |
| None | __init__ (self) |
| None | __init__ (self, InSphereTester_double arg0) |
| bool | reset (self, Vector3d va, Vector3d vb, Vector3d vc, float sqRadius) |
Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
| InSphereTester_double | operator (*args, **kwargs) |
| InSphereTester_double | operator (*args, **kwargs) |
Generated from: MR::InSphereTester<double> Aliases: InSphereTesterd accelerates testing of many query points against one sphere given by the same three points and radius, pre-computing all the point-independent quantities once; the primary template works for floating-point T with the same case analysis as the precise specialization for int below, so the answers for the query points near the sphere's surface are subject to rounding errors, and OnSphere is returned only on the exact equality in the comparisons; the products inside have degree 16 in coordinates, so to avoid overflows any difference of two given points' coordinates as well as sqrt(rSq) must be below ~100 for T=float and ~1e18 for T=double; the one-call inSphere functions are implemented via this class
|
static |
| None mrmeshpy.InSphereTester_double.__init__ | ( | self | ) |
| None mrmeshpy.InSphereTester_double.__init__ | ( | self, | |
| InSphereTester_double | arg0 ) |
Implicit copy constructor.
| InSphereResult mrmeshpy.InSphereTester_double.__call__ | ( | self, | |
| Vector3d | d ) |
returns the position of the point d relative to the sphere (never NoSphere); shall be called only after reset() returned true
|
static |
|
static |
| bool mrmeshpy.InSphereTester_double.reset | ( | self, | |
| Vector3d | va, | ||
| Vector3d | vb, | ||
| Vector3d | vc, | ||
| float | sqRadius ) |
prepares the tester for the sphere of radius sqrt(rSq) passing via points a, b, c, with the center located on the positive side of plane abc (in the half-space pointed at by cross( b - a, c - a ) from the plane); returns false if no such sphere exists: the points are collinear or coincident, or rSq is less than the squared circumradius of triangle abc