MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.InSphereTester_float Class Reference
Inheritance diagram for mrmeshpy.InSphereTester_float:

Public Member Functions

None __init__ (self)
None __init__ (self, ConstInSphereTester_float arg0)
InSphereTester_float assign (self, ConstInSphereTester_float other)
None flip (self)
bool reset (self, ConstVector3f va, ConstVector3f vb, ConstVector3f vc, float sqRadius)
Public Member Functions inherited from mrmeshpy.ConstInSphereTester_float
InSphereResult __call__ (self, ConstVector3f d)
 __init__ (self, *args, **kwargs)

Static Public Member Functions

None __init__ (*args, **kwargs)

Detailed Description

Generated from:  MR::InSphereTester<float>
Aliases:  InSphereTesterf

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

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.InSphereTester_float.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/3]

None mrmeshpy.InSphereTester_float.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.InSphereTester_float.__init__ ( self,
ConstInSphereTester_float arg0 )
Implicit copy constructor.

Member Function Documentation

◆ assign()

InSphereTester_float mrmeshpy.InSphereTester_float.assign ( self,
ConstInSphereTester_float other )

◆ flip()

None mrmeshpy.InSphereTester_float.flip ( self)
swaps the points b and c, which selects the mirror sphere with the center on the other side
of plane abc, and gives exactly the state of reset( a, c, b, rSq ) without recomputing anything:
only the normal w changes there, and W, M, E are symmetric in b and c;
shall be called only after reset() returned true

◆ reset()

bool mrmeshpy.InSphereTester_float.reset ( self,
ConstVector3f va,
ConstVector3f vb,
ConstVector3f 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

The documentation for this class was generated from the following file: