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

Public Member Functions

 UniformSamplingSettings (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 UniformSamplingSettings ()
 UniformSamplingSettings (float distance, float minNormalDot, boolean lexicographicalOrder, meshlib.VertCoords pNormals, meshlib.std_function_bool_from_float progress)
 UniformSamplingSettings (meshlib.UniformSamplingSettings _other)
meshlib.UniformSamplingSettings assignFromAnother (meshlib.UniformSamplingSettings _other)
float distance ()
void setDistance (float value)
float minNormalDot ()
void setMinNormalDot (float value)
boolean lexicographicalOrder ()
void setLexicographicalOrder (boolean value)
java.lang.foreign.MemorySegment pNormals ()
void setPNormals (meshlib.VertCoords value)
meshlib.std_function_bool_from_float progress ()
void setProgress (meshlib.std_function_bool_from_float value)
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 ()

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

Generated from class MR::UniformSamplingSettings.

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

Constructor & Destructor Documentation

◆ UniformSamplingSettings() [1/4]

meshlib.UniformSamplingSettings.UniformSamplingSettings ( 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.

◆ UniformSamplingSettings() [2/4]

meshlib.UniformSamplingSettings.UniformSamplingSettings ( )

Constructs an empty (default-constructed) instance.

Calls MR_UniformSamplingSettings_DefaultConstruct().

◆ UniformSamplingSettings() [3/4]

meshlib.UniformSamplingSettings.UniformSamplingSettings ( float distance,
float minNormalDot,
boolean lexicographicalOrder,
meshlib.VertCoords pNormals,
meshlib.std_function_bool_from_float progress )

Constructs MR::UniformSamplingSettings elementwise. The reference to the parameter pNormals might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object.

Calls MR_UniformSamplingSettings_ConstructFrom().

◆ UniformSamplingSettings() [4/4]

meshlib.UniformSamplingSettings.UniformSamplingSettings ( meshlib.UniformSamplingSettings _other)

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

Calls MR_UniformSamplingSettings_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.UniformSamplingSettings meshlib.UniformSamplingSettings.assignFromAnother ( meshlib.UniformSamplingSettings _other)

Generated from method MR::UniformSamplingSettings::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_UniformSamplingSettings_AssignFromAnother().

◆ distance()

float meshlib.UniformSamplingSettings.distance ( )

minimal distance between samples Returns a pointer to a member variable of class MR::UniformSamplingSettings named distance. The reference to this object might be preserved as the return value.

Calls MR_UniformSamplingSettings_Get_distance().

◆ lexicographicalOrder()

boolean meshlib.UniformSamplingSettings.lexicographicalOrder ( )

if true process the points in lexicographical order, which gives tighter and more uniform samples; if false process the points according to their ids, which is faster Returns a pointer to a member variable of class MR::UniformSamplingSettings named lexicographicalOrder. The reference to this object might be preserved as the return value.

Calls MR_UniformSamplingSettings_Get_lexicographicalOrder().

◆ minNormalDot()

float meshlib.UniformSamplingSettings.minNormalDot ( )

if point cloud has normals then automatically decreases local distance to make sure that all points inside have absolute normal dot product not less than this value; this is to make sampling denser in the regions of high curvature; value <=0 means ignore normals; value >=1 means select all points (practically useless) Returns a pointer to a member variable of class MR::UniformSamplingSettings named minNormalDot. The reference to this object might be preserved as the return value.

Calls MR_UniformSamplingSettings_Get_minNormalDot().

◆ pNormals()

java.lang.foreign.MemorySegment meshlib.UniformSamplingSettings.pNormals ( )

if not nullptr then these normals will be used during sampling instead of normals in the cloud itself Returns a pointer to a member variable of class MR::UniformSamplingSettings named pNormals. The reference to this object might be preserved as the return value.

Calls MR_UniformSamplingSettings_Get_pNormals(). Some types are raw C types, see the C bindings for the details.

◆ progress()

meshlib.std_function_bool_from_float meshlib.UniformSamplingSettings.progress ( )

to report progress and cancel processing Returns a pointer to a member variable of class MR::UniformSamplingSettings named progress. The reference to this object might be preserved as the return value.

Calls MR_UniformSamplingSettings_Get_progress().

◆ setDistance()

void meshlib.UniformSamplingSettings.setDistance ( float value)

minimal distance between samples Modifies a member variable of class MR::UniformSamplingSettings named distance.

Calls MR_UniformSamplingSettings_Set_distance().

◆ setLexicographicalOrder()

void meshlib.UniformSamplingSettings.setLexicographicalOrder ( boolean value)

if true process the points in lexicographical order, which gives tighter and more uniform samples; if false process the points according to their ids, which is faster Modifies a member variable of class MR::UniformSamplingSettings named lexicographicalOrder.

Calls MR_UniformSamplingSettings_Set_lexicographicalOrder().

◆ setMinNormalDot()

void meshlib.UniformSamplingSettings.setMinNormalDot ( float value)

if point cloud has normals then automatically decreases local distance to make sure that all points inside have absolute normal dot product not less than this value; this is to make sampling denser in the regions of high curvature; value <=0 means ignore normals; value >=1 means select all points (practically useless) Modifies a member variable of class MR::UniformSamplingSettings named minNormalDot.

Calls MR_UniformSamplingSettings_Set_minNormalDot().

◆ setPNormals()

void meshlib.UniformSamplingSettings.setPNormals ( meshlib.VertCoords value)

if not nullptr then these normals will be used during sampling instead of normals in the cloud itself Modifies a member variable of class MR::UniformSamplingSettings named pNormals. The reference to the parameter value might be preserved in this object in element pNormals.

Calls MR_UniformSamplingSettings_Set_pNormals().

◆ setProgress()

void meshlib.UniformSamplingSettings.setProgress ( meshlib.std_function_bool_from_float value)

to report progress and cancel processing Modifies a member variable of class MR::UniformSamplingSettings named progress. The reference to the parameter value might be preserved in this object in element progress.

Calls MR_UniformSamplingSettings_Set_progress().


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