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

Public Member Functions

 SplineSettings (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 SplineSettings ()
 SplineSettings (float samplingStep, float controlStability, int iterations, meshlib.std_vector_MR_Vector3f normals, boolean normalsAffectShape)
 SplineSettings (meshlib.SplineSettings _other)
meshlib.SplineSettings assignFromAnother (meshlib.SplineSettings _other)
float samplingStep ()
void setSamplingStep (float value)
float controlStability ()
void setControlStability (float value)
int iterations ()
void setIterations (int value)
java.lang.foreign.MemorySegment normals ()
void setNormals (meshlib.std_vector_MR_Vector3f value)
boolean normalsAffectShape ()
void setNormalsAffectShape (boolean 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::SplineSettings.

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

Constructor & Destructor Documentation

◆ SplineSettings() [1/4]

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

◆ SplineSettings() [2/4]

meshlib.SplineSettings.SplineSettings ( )

Constructs an empty (default-constructed) instance.

Calls MR_SplineSettings_DefaultConstruct().

◆ SplineSettings() [3/4]

meshlib.SplineSettings.SplineSettings ( float samplingStep,
float controlStability,
int iterations,
meshlib.std_vector_MR_Vector3f normals,
boolean normalsAffectShape )

Constructs MR::SplineSettings elementwise. The reference to the parameter normals might be preserved in the constructed object.

Calls MR_SplineSettings_ConstructFrom().

◆ SplineSettings() [4/4]

meshlib.SplineSettings.SplineSettings ( meshlib.SplineSettings _other)

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

Calls MR_SplineSettings_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.SplineSettings meshlib.SplineSettings.assignFromAnother ( meshlib.SplineSettings _other)

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

Calls MR_SplineSettings_AssignFromAnother().

◆ controlStability()

float meshlib.SplineSettings.controlStability ( )

a positive value, the more the value the closer resulting spline will be to given control points Returns a pointer to a member variable of class MR::SplineSettings named controlStability. The reference to this object might be preserved as the return value.

Calls MR_SplineSettings_Get_controlStability().

◆ iterations()

int meshlib.SplineSettings.iterations ( )

the shape of resulting spline depends on the total number of points in the contour, which in turn depends on the length of input contour being sampled; setting iterations greater than one allows you to pass a constructed spline as a better input contour to the next run of the algorithm Returns a pointer to a member variable of class MR::SplineSettings named iterations. The reference to this object might be preserved as the return value.

Calls MR_SplineSettings_Get_iterations().

◆ normals()

java.lang.foreign.MemorySegment meshlib.SplineSettings.normals ( )

optional parameter with the normals of input points that will be resampled to become normals of output points Returns a pointer to a member variable of class MR::SplineSettings named normals. The reference to this object might be preserved as the return value.

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

◆ normalsAffectShape()

boolean meshlib.SplineSettings.normalsAffectShape ( )

if true and normals are provided, then the curve at marked points will try to be orthogonal to given normal there Returns a pointer to a member variable of class MR::SplineSettings named normalsAffectShape. The reference to this object might be preserved as the return value.

Calls MR_SplineSettings_Get_normalsAffectShape().

◆ samplingStep()

float meshlib.SplineSettings.samplingStep ( )

additional points will be added between each pair of control points, until the distance between neighbor points becomes less than this distance Returns a pointer to a member variable of class MR::SplineSettings named samplingStep. The reference to this object might be preserved as the return value.

Calls MR_SplineSettings_Get_samplingStep().

◆ setControlStability()

void meshlib.SplineSettings.setControlStability ( float value)

a positive value, the more the value the closer resulting spline will be to given control points Modifies a member variable of class MR::SplineSettings named controlStability.

Calls MR_SplineSettings_Set_controlStability().

◆ setIterations()

void meshlib.SplineSettings.setIterations ( int value)

the shape of resulting spline depends on the total number of points in the contour, which in turn depends on the length of input contour being sampled; setting iterations greater than one allows you to pass a constructed spline as a better input contour to the next run of the algorithm Modifies a member variable of class MR::SplineSettings named iterations.

Calls MR_SplineSettings_Set_iterations().

◆ setNormals()

void meshlib.SplineSettings.setNormals ( meshlib.std_vector_MR_Vector3f value)

optional parameter with the normals of input points that will be resampled to become normals of output points Modifies a member variable of class MR::SplineSettings named normals. The reference to the parameter value might be preserved in this object in element normals.

Calls MR_SplineSettings_Set_normals().

◆ setNormalsAffectShape()

void meshlib.SplineSettings.setNormalsAffectShape ( boolean value)

if true and normals are provided, then the curve at marked points will try to be orthogonal to given normal there Modifies a member variable of class MR::SplineSettings named normalsAffectShape.

Calls MR_SplineSettings_Set_normalsAffectShape().

◆ setSamplingStep()

void meshlib.SplineSettings.setSamplingStep ( float value)

additional points will be added between each pair of control points, until the distance between neighbor points becomes less than this distance Modifies a member variable of class MR::SplineSettings named samplingStep.

Calls MR_SplineSettings_Set_samplingStep().


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