MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.FastWindingNumber Class Reference
Inheritance diagram for meshlib.FastWindingNumber:

Public Member Functions

 FastWindingNumber (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 FastWindingNumber (meshlib.FastWindingNumber _other)
 FastWindingNumber (meshlib.Mesh mesh)
void calcFromVector (meshlib.std_vector_float res, meshlib.std_vector_MR_Vector3f points, float beta, meshlib.FaceId skipFace, meshlib.std_function_bool_from_float cb)
void calcSelfIntersections (meshlib.FaceBitSet res, float beta, meshlib.std_function_bool_from_float cb)
void calcFromGrid (meshlib.std_vector_float res, meshlib.Vector3i dims, meshlib.AffineXf3f gridToMeshXf, float beta, meshlib.std_function_bool_from_float cb)
float calcWithDistances (meshlib.Vector3f p, meshlib.DistanceToMeshOptions options)
void calcFromGridWithDistances (meshlib.VoxelScalars res, meshlib.Vector3i dims, meshlib.AffineXf3f gridToMeshXf, meshlib.DistanceToMeshOptions options, meshlib.std_function_bool_from_float cb)
meshlib.IFastWindingNumber upcastToIFastWindingNumber ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Static Public Member Functions

static meshlib.FastWindingNumber staticDowncastFromIFastWindingNumber (meshlib.IFastWindingNumber object)
static meshlib.FastWindingNumber dynamicDowncastFromIFastWindingNumber (meshlib.IFastWindingNumber object)

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

the class for fast approximate computation of winding number for a mesh (using its AABB tree) Note, this used to be [[nodiscard]], but GCC 12 doesn't understand both [[...]] and __attribute__(...) on the same class. A possible fix is to change MRMESH_CLASS globally to [[__gnu__::__visibility__("default")]]. Generated from class MR::FastWindingNumber. Base classes: Direct: (non-virtual) MR::IFastWindingNumber

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ FastWindingNumber() [1/3]

meshlib.FastWindingNumber.FastWindingNumber ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ FastWindingNumber() [2/3]

meshlib.FastWindingNumber.FastWindingNumber ( meshlib.FastWindingNumber _other)

Generated from constructor MR::FastWindingNumber::FastWindingNumber. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_FastWindingNumber_ConstructFromAnother().

◆ FastWindingNumber() [3/3]

meshlib.FastWindingNumber.FastWindingNumber ( meshlib.Mesh mesh)

constructs this from AABB tree of given mesh; this remains valid only if tree is valid Generated from constructor MR::FastWindingNumber::FastWindingNumber. The reference to the parameter mesh might be preserved in the constructed object.

Calls MR_FastWindingNumber_Construct().

Member Function Documentation

◆ calcFromGrid()

void meshlib.FastWindingNumber.calcFromGrid ( meshlib.std_vector_float res,
meshlib.Vector3i dims,
meshlib.AffineXf3f gridToMeshXf,
float beta,
meshlib.std_function_bool_from_float cb )

Generated from method MR::FastWindingNumber::calcFromGrid.

Calls MR_FastWindingNumber_calcFromGrid(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ calcFromGridWithDistances()

void meshlib.FastWindingNumber.calcFromGridWithDistances ( meshlib.VoxelScalars res,
meshlib.Vector3i dims,
meshlib.AffineXf3f gridToMeshXf,
meshlib.DistanceToMeshOptions options,
meshlib.std_function_bool_from_float cb )

Generated from method MR::FastWindingNumber::calcFromGridWithDistances.

Calls MR_FastWindingNumber_calcFromGridWithDistances(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ calcFromVector()

void meshlib.FastWindingNumber.calcFromVector ( meshlib.std_vector_float res,
meshlib.std_vector_MR_Vector3f points,
float beta,
meshlib.FaceId skipFace,
meshlib.std_function_bool_from_float cb )

see methods' descriptions in IFastWindingNumber Generated from method MR::FastWindingNumber::calcFromVector.

Calls MR_FastWindingNumber_calcFromVector(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ calcSelfIntersections()

void meshlib.FastWindingNumber.calcSelfIntersections ( meshlib.FaceBitSet res,
float beta,
meshlib.std_function_bool_from_float cb )

Generated from method MR::FastWindingNumber::calcSelfIntersections.

Calls MR_FastWindingNumber_calcSelfIntersections(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ calcWithDistances()

float meshlib.FastWindingNumber.calcWithDistances ( meshlib.Vector3f p,
meshlib.DistanceToMeshOptions options )

Generated from method MR::FastWindingNumber::calcWithDistances.

Calls MR_FastWindingNumber_calcWithDistances().

◆ dynamicDowncastFromIFastWindingNumber()

meshlib.FastWindingNumber meshlib.FastWindingNumber.dynamicDowncastFromIFastWindingNumber ( meshlib.IFastWindingNumber object)
static

Dynamic downcast from the base class MR::IFastWindingNumber. Returns null if the object isn't actually a FastWindingNumber. The result refers to object.

Calls MR_FastWindingNumber_MutableDynamicDowncastFrom_MR_IFastWindingNumber().

◆ staticDowncastFromIFastWindingNumber()

meshlib.FastWindingNumber meshlib.FastWindingNumber.staticDowncastFromIFastWindingNumber ( meshlib.IFastWindingNumber object)
static

Static downcast from the base class MR::IFastWindingNumber. Undefined behavior if the object isn't actually a FastWindingNumber. The result refers to object.

Calls MR_FastWindingNumber_MutableStaticDowncastFrom_MR_IFastWindingNumber().

◆ upcastToIFastWindingNumber()

meshlib.IFastWindingNumber meshlib.FastWindingNumber.upcastToIFastWindingNumber ( )

Upcasts to the base class MR::IFastWindingNumber. The result refers to this object.

Calls MR_FastWindingNumber_MutableUpcastTo_MR_IFastWindingNumber().


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