Public Member Functions | |
| DecimatePolylineSettings_MR_Vector2f (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner) | |
| DecimatePolylineSettings_MR_Vector2f () | |
| DecimatePolylineSettings_MR_Vector2f (float maxError, float maxEdgeLen, float stabilizer, boolean optimizeVertexPos, int maxDeletedVertices, meshlib.VertBitSet region, boolean touchBdVertices, meshlib.std_function_bool_from_MR_EdgeId_const_MR_Vector2f_ref preCollapse, meshlib.std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector2f_ref adjustCollapse, meshlib.Vector_MR_QuadraticForm2f_MR_VertId vertForms) | |
| DecimatePolylineSettings_MR_Vector2f (meshlib.DecimatePolylineSettings_MR_Vector2f _other) | |
| meshlib.DecimatePolylineSettings_MR_Vector2f | assignFromAnother (meshlib.DecimatePolylineSettings_MR_Vector2f _other) |
| float | maxError () |
| void | setMaxError (float value) |
| float | maxEdgeLen () |
| void | setMaxEdgeLen (float value) |
| float | stabilizer () |
| void | setStabilizer (float value) |
| boolean | optimizeVertexPos () |
| void | setOptimizeVertexPos (boolean value) |
| int | maxDeletedVertices () |
| void | setMaxDeletedVertices (int value) |
| java.lang.foreign.MemorySegment | region () |
| void | setRegion (meshlib.VertBitSet value) |
| boolean | touchBdVertices () |
| void | setTouchBdVertices (boolean value) |
| meshlib.std_function_bool_from_MR_EdgeId_const_MR_Vector2f_ref | preCollapse () |
| The user can provide this optional callback that is invoked immediately before edge collapse;. | |
| void | setPreCollapse (meshlib.std_function_bool_from_MR_EdgeId_const_MR_Vector2f_ref value) |
| The user can provide this optional callback that is invoked immediately before edge collapse;. | |
| meshlib.std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector2f_ref | adjustCollapse () |
| The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position. | |
| void | setAdjustCollapse (meshlib.std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector2f_ref value) |
| The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position. | |
| java.lang.foreign.MemorySegment | vertForms () |
| If not null, then on input: if the vector is not empty then it is taken for initialization instead of form computation for all vertices; on output: quadratic form for each remaining vertex is returned there. | |
| void | setVertForms (meshlib.Vector_MR_QuadraticForm2f_MR_VertId value) |
| If not null, then on input: if the vector is not empty then it is taken for initialization instead of form computation for all vertices; on output: quadratic form for each remaining vertex is returned there. | |
| 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) | |
| meshlib.DecimatePolylineSettings_MR_Vector2f.DecimatePolylineSettings_MR_Vector2f | ( | 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.
| meshlib.DecimatePolylineSettings_MR_Vector2f.DecimatePolylineSettings_MR_Vector2f | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_DecimatePolylineSettings_MR_Vector2f_DefaultConstruct().
| meshlib.DecimatePolylineSettings_MR_Vector2f.DecimatePolylineSettings_MR_Vector2f | ( | float | maxError, |
| float | maxEdgeLen, | ||
| float | stabilizer, | ||
| boolean | optimizeVertexPos, | ||
| int | maxDeletedVertices, | ||
| meshlib.VertBitSet | region, | ||
| boolean | touchBdVertices, | ||
| meshlib.std_function_bool_from_MR_EdgeId_const_MR_Vector2f_ref | preCollapse, | ||
| meshlib.std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector2f_ref | adjustCollapse, | ||
| meshlib.Vector_MR_QuadraticForm2f_MR_VertId | vertForms ) |
Constructs MR::DecimatePolylineSettings<MR::Vector2f> elementwise. The reference to the parameter region might be preserved in the constructed object. The reference to the parameter preCollapse might be preserved in the constructed object. The reference to the parameter adjustCollapse might be preserved in the constructed object. The reference to the parameter vertForms might be preserved in the constructed object.
Calls MR_DecimatePolylineSettings_MR_Vector2f_ConstructFrom().
| meshlib.DecimatePolylineSettings_MR_Vector2f.DecimatePolylineSettings_MR_Vector2f | ( | meshlib.DecimatePolylineSettings_MR_Vector2f | _other | ) |
Generated from constructor MR::DecimatePolylineSettings<MR::Vector2f>::DecimatePolylineSettings. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
Calls MR_DecimatePolylineSettings_MR_Vector2f_ConstructFromAnother().
| meshlib.std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector2f_ref meshlib.DecimatePolylineSettings_MR_Vector2f.adjustCollapse | ( | ) |
The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position.
On input the callback gets the squared error and position computed by standard means, and callback can modify any of them. The larger the error, the later this edge will be collapsed. This callback can be called from many threads in parallel and must be thread-safe. This callback can be called many times for each edge before real collapsing, and it is important to make the same adjustment.
Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named adjustCollapse. The reference to this object might be preserved as the return value.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Get_adjustCollapse().
| meshlib.DecimatePolylineSettings_MR_Vector2f meshlib.DecimatePolylineSettings_MR_Vector2f.assignFromAnother | ( | meshlib.DecimatePolylineSettings_MR_Vector2f | _other | ) |
Generated from method MR::DecimatePolylineSettings<MR::Vector2f>::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.
Calls MR_DecimatePolylineSettings_MR_Vector2f_AssignFromAnother().
| int meshlib.DecimatePolylineSettings_MR_Vector2f.maxDeletedVertices | ( | ) |
Limit on the number of deleted vertices Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named maxDeletedVertices. The reference to this object might be preserved as the return value.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Get_maxDeletedVertices().
| float meshlib.DecimatePolylineSettings_MR_Vector2f.maxEdgeLen | ( | ) |
Maximal possible edge length created during decimation Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named maxEdgeLen. The reference to this object might be preserved as the return value.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Get_maxEdgeLen().
| float meshlib.DecimatePolylineSettings_MR_Vector2f.maxError | ( | ) |
Limit from above on the maximum distance from moved vertices to original contour Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named maxError. The reference to this object might be preserved as the return value.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Get_maxError().
| boolean meshlib.DecimatePolylineSettings_MR_Vector2f.optimizeVertexPos | ( | ) |
if true then after each edge collapse the position of remaining vertex is optimized to minimize local shape change, if false then the edge is collapsed in one of its vertices, which keeps its position Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named optimizeVertexPos. The reference to this object might be preserved as the return value.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Get_optimizeVertexPos().
| meshlib.std_function_bool_from_MR_EdgeId_const_MR_Vector2f_ref meshlib.DecimatePolylineSettings_MR_Vector2f.preCollapse | ( | ) |
The user can provide this optional callback that is invoked immediately before edge collapse;.
It receives the edge being collapsed: its destination vertex will disappear, and its origin vertex will get new position (provided as the second argument) after collapse; If the callback returns false, then the collapse is prohibited
Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named preCollapse. The reference to this object might be preserved as the return value.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Get_preCollapse().
| java.lang.foreign.MemorySegment meshlib.DecimatePolylineSettings_MR_Vector2f.region | ( | ) |
Region of the polyline to be decimated, it is updated during the operation Remain nullptr to include the whole polyline Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named region. The reference to this object might be preserved as the return value.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Get_region(). Some types are raw C types, see the C bindings for the details.
| void meshlib.DecimatePolylineSettings_MR_Vector2f.setAdjustCollapse | ( | meshlib.std_function_void_from_MR_UndirectedEdgeId_float_ref_MR_Vector2f_ref | value | ) |
The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position.
On input the callback gets the squared error and position computed by standard means, and callback can modify any of them. The larger the error, the later this edge will be collapsed. This callback can be called from many threads in parallel and must be thread-safe. This callback can be called many times for each edge before real collapsing, and it is important to make the same adjustment.
Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named adjustCollapse. The reference to the parameter value might be preserved in this object in element adjustCollapse.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Set_adjustCollapse().
| void meshlib.DecimatePolylineSettings_MR_Vector2f.setMaxDeletedVertices | ( | int | value | ) |
Limit on the number of deleted vertices Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named maxDeletedVertices.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Set_maxDeletedVertices().
| void meshlib.DecimatePolylineSettings_MR_Vector2f.setMaxEdgeLen | ( | float | value | ) |
Maximal possible edge length created during decimation Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named maxEdgeLen.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Set_maxEdgeLen().
| void meshlib.DecimatePolylineSettings_MR_Vector2f.setMaxError | ( | float | value | ) |
Limit from above on the maximum distance from moved vertices to original contour Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named maxError.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Set_maxError().
| void meshlib.DecimatePolylineSettings_MR_Vector2f.setOptimizeVertexPos | ( | boolean | value | ) |
if true then after each edge collapse the position of remaining vertex is optimized to minimize local shape change, if false then the edge is collapsed in one of its vertices, which keeps its position Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named optimizeVertexPos.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Set_optimizeVertexPos().
| void meshlib.DecimatePolylineSettings_MR_Vector2f.setPreCollapse | ( | meshlib.std_function_bool_from_MR_EdgeId_const_MR_Vector2f_ref | value | ) |
The user can provide this optional callback that is invoked immediately before edge collapse;.
It receives the edge being collapsed: its destination vertex will disappear, and its origin vertex will get new position (provided as the second argument) after collapse; If the callback returns false, then the collapse is prohibited
Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named preCollapse. The reference to the parameter value might be preserved in this object in element preCollapse.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Set_preCollapse().
| void meshlib.DecimatePolylineSettings_MR_Vector2f.setRegion | ( | meshlib.VertBitSet | value | ) |
Region of the polyline to be decimated, it is updated during the operation Remain nullptr to include the whole polyline Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named region. The reference to the parameter value might be preserved in this object in element region.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Set_region().
| void meshlib.DecimatePolylineSettings_MR_Vector2f.setStabilizer | ( | float | value | ) |
Stabilizer is dimensionless coefficient. The larger is stabilizer, the more Decimator will strive to retain the density of input points. If stabilizer is zero, then only the shape of input line will be preserved. Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named stabilizer.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Set_stabilizer().
| void meshlib.DecimatePolylineSettings_MR_Vector2f.setTouchBdVertices | ( | boolean | value | ) |
Whether to allow collapsing edges with at least one vertex on the end of not-closed polyline (or on region boundary if region is given); if touchBdVertices is false then boundary vertices are strictly fixed Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named touchBdVertices.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Set_touchBdVertices().
| void meshlib.DecimatePolylineSettings_MR_Vector2f.setVertForms | ( | meshlib.Vector_MR_QuadraticForm2f_MR_VertId | value | ) |
If not null, then on input: if the vector is not empty then it is taken for initialization instead of form computation for all vertices; on output: quadratic form for each remaining vertex is returned there.
Modifies a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named vertForms. The reference to the parameter value might be preserved in this object in element vertForms.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Set_vertForms().
| float meshlib.DecimatePolylineSettings_MR_Vector2f.stabilizer | ( | ) |
Stabilizer is dimensionless coefficient. The larger is stabilizer, the more Decimator will strive to retain the density of input points. If stabilizer is zero, then only the shape of input line will be preserved. Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named stabilizer. The reference to this object might be preserved as the return value.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Get_stabilizer().
| boolean meshlib.DecimatePolylineSettings_MR_Vector2f.touchBdVertices | ( | ) |
Whether to allow collapsing edges with at least one vertex on the end of not-closed polyline (or on region boundary if region is given); if touchBdVertices is false then boundary vertices are strictly fixed Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named touchBdVertices. The reference to this object might be preserved as the return value.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Get_touchBdVertices().
| java.lang.foreign.MemorySegment meshlib.DecimatePolylineSettings_MR_Vector2f.vertForms | ( | ) |
If not null, then on input: if the vector is not empty then it is taken for initialization instead of form computation for all vertices; on output: quadratic form for each remaining vertex is returned there.
Returns a pointer to a member variable of class MR::DecimatePolylineSettings<MR::Vector2f> named vertForms. The reference to this object might be preserved as the return value.
Calls MR_DecimatePolylineSettings_MR_Vector2f_Get_vertForms(). Some types are raw C types, see the C bindings for the details.