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

Public Member Functions

None __init__ (self)
None __init__ (self, ConstInSphereTester_int arg0)
InSphereTester_int assign (self, ConstInSphereTester_int other)
None flip (self)
bool reset (self, ConstVector3i a, ConstVector3i b, ConstVector3i c, int rSq)
Public Member Functions inherited from mrmeshpy.ConstInSphereTester_int
InSphereResult __call__ (self, ConstVector3i d)
 __init__ (self, *args, **kwargs)

Static Public Member Functions

None __init__ (*args, **kwargs)

Detailed Description

Generated from:  MR::InSphereTester<int>
Aliases:  InSphereTesteri

the specialization implementing the precise integer predicate, exact for any input;
rSq must be given in the same integer grid units as the point coordinates

Constructor & Destructor Documentation

◆ __init__() [1/3]

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

◆ __init__() [2/3]

None mrmeshpy.InSphereTester_int.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.InSphereTester_int.__init__ ( self,
ConstInSphereTester_int arg0 )
Implicit copy constructor.

Member Function Documentation

◆ assign()

InSphereTester_int mrmeshpy.InSphereTester_int.assign ( self,
ConstInSphereTester_int other )

◆ flip()

None mrmeshpy.InSphereTester_int.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

Reimplemented in mrmeshpy.FastInSphereTesterSoS, and mrmeshpy.InSphereTesterSoS.

◆ reset()

bool mrmeshpy.InSphereTester_int.reset ( self,
ConstVector3i a,
ConstVector3i b,
ConstVector3i c,
int rSq )
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

Reimplemented in mrmeshpy.FastInSphereTesterSoS, and mrmeshpy.InSphereTesterSoS.


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