Static Public Member Functions | |
| static meshlib.DracoSaveOptions | staticDowncastFromSaveSettings (meshlib.SaveSettings 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) | |
options for saving in Google Draco format Generated from class MR::DracoSaveOptions. Base classes: Direct: (non-virtual) MR::SaveSettings
Instances created here own their C++ objects, see CppObject.
| meshlib.DracoSaveOptions.DracoSaveOptions | ( | 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.DracoSaveOptions.DracoSaveOptions | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_DracoSaveOptions_DefaultConstruct().
| meshlib.DracoSaveOptions.DracoSaveOptions | ( | meshlib.DracoSaveOptions | _other | ) |
Generated from constructor MR::DracoSaveOptions::DracoSaveOptions. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
Calls MR_DracoSaveOptions_ConstructFromAnother().
| meshlib.DracoSaveOptions meshlib.DracoSaveOptions.assignFromAnother | ( | meshlib.DracoSaveOptions | _other | ) |
Generated from method MR::DracoSaveOptions::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.
Calls MR_DracoSaveOptions_AssignFromAnother().
| java.lang.foreign.MemorySegment meshlib.DracoSaveOptions.colors | ( | ) |
optional per-vertex color to save with the geometry Returns a pointer to a member variable of class MR::DracoSaveOptions named colors. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_colors(). Some types are raw C types, see the C bindings for the details.
| int meshlib.DracoSaveOptions.compressionLevel | ( | ) |
0 - fastest encoding and decoding but the worst compression, 10 - the best compression Returns a pointer to a member variable of class MR::DracoSaveOptions named compressionLevel. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_compressionLevel().
| meshlib.std_optional_MR_LengthUnit meshlib.DracoSaveOptions.lengthUnit | ( | ) |
units of input coordinates and transformation, to be serialized if the format supports it Returns a pointer to a member variable of class MR::DracoSaveOptions named lengthUnit. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_lengthUnit().
| meshlib.std_string meshlib.DracoSaveOptions.materialName | ( | ) |
the name of file (UTF8 encoded) without extension to save texture in some formats (e.g. .OBJ, .PLY) Returns a pointer to a member variable of class MR::DracoSaveOptions named materialName. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_materialName().
| boolean meshlib.DracoSaveOptions.onlyValidPoints | ( | ) |
true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices Returns a pointer to a member variable of class MR::DracoSaveOptions named onlyValidPoints. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_onlyValidPoints().
| boolean meshlib.DracoSaveOptions.packPrimitives | ( | ) |
whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only Returns a pointer to a member variable of class MR::DracoSaveOptions named packPrimitives. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_packPrimitives().
| int meshlib.DracoSaveOptions.positionQuantizationBits | ( | ) |
the number of bits to quantize vertex coordinates to (in the range [1, 30]); 0 - no quantization, the coordinates are saved losslessly Returns a pointer to a member variable of class MR::DracoSaveOptions named positionQuantizationBits. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_positionQuantizationBits().
| java.lang.foreign.MemorySegment meshlib.DracoSaveOptions.primitiveColors | ( | ) |
per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other Returns a pointer to a member variable of class MR::DracoSaveOptions named primitiveColors. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_primitiveColors(). Some types are raw C types, see the C bindings for the details.
| meshlib.std_function_bool_from_float meshlib.DracoSaveOptions.progress | ( | ) |
to report save progress and cancel saving if user desires Returns a pointer to a member variable of class MR::DracoSaveOptions named progress. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_progress().
| boolean meshlib.DracoSaveOptions.saveTriCornerUVCoords | ( | ) |
if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software) Returns a pointer to a member variable of class MR::DracoSaveOptions named saveTriCornerUVCoords. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_saveTriCornerUVCoords().
| void meshlib.DracoSaveOptions.setColors | ( | meshlib.VertColors | value | ) |
optional per-vertex color to save with the geometry Modifies a member variable of class MR::DracoSaveOptions named colors. The reference to the parameter value might be preserved in this object in element colors.
Calls MR_DracoSaveOptions_Set_colors().
| void meshlib.DracoSaveOptions.setCompressionLevel | ( | int | value | ) |
0 - fastest encoding and decoding but the worst compression, 10 - the best compression Modifies a member variable of class MR::DracoSaveOptions named compressionLevel.
Calls MR_DracoSaveOptions_Set_compressionLevel().
| void meshlib.DracoSaveOptions.setLengthUnit | ( | meshlib.LengthUnit | value | ) |
units of input coordinates and transformation, to be serialized if the format supports it Modifies a member variable of class MR::DracoSaveOptions named lengthUnit. The reference to the parameter value might be preserved in this object in element lengthUnit.
Calls MR_DracoSaveOptions_Set_lengthUnit().
| void meshlib.DracoSaveOptions.setMaterialName | ( | java.lang.String | value | ) |
the name of file (UTF8 encoded) without extension to save texture in some formats (e.g. .OBJ, .PLY) Modifies a member variable of class MR::DracoSaveOptions named materialName. The reference to the parameter value might be preserved in this object in element materialName.
Calls MR_DracoSaveOptions_Set_materialName().
| void meshlib.DracoSaveOptions.setOnlyValidPoints | ( | boolean | value | ) |
true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices Modifies a member variable of class MR::DracoSaveOptions named onlyValidPoints.
Calls MR_DracoSaveOptions_Set_onlyValidPoints().
| void meshlib.DracoSaveOptions.setPackPrimitives | ( | boolean | value | ) |
whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only Modifies a member variable of class MR::DracoSaveOptions named packPrimitives.
Calls MR_DracoSaveOptions_Set_packPrimitives().
| void meshlib.DracoSaveOptions.setPositionQuantizationBits | ( | int | value | ) |
the number of bits to quantize vertex coordinates to (in the range [1, 30]); 0 - no quantization, the coordinates are saved losslessly Modifies a member variable of class MR::DracoSaveOptions named positionQuantizationBits.
Calls MR_DracoSaveOptions_Set_positionQuantizationBits().
| void meshlib.DracoSaveOptions.setPrimitiveColors | ( | meshlib.FaceColors | value | ) |
per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other Modifies a member variable of class MR::DracoSaveOptions named primitiveColors. The reference to the parameter value might be preserved in this object in element primitiveColors.
Calls MR_DracoSaveOptions_Set_primitiveColors().
| void meshlib.DracoSaveOptions.setProgress | ( | meshlib.std_function_bool_from_float | value | ) |
to report save progress and cancel saving if user desires Modifies a member variable of class MR::DracoSaveOptions named progress. The reference to the parameter value might be preserved in this object in element progress.
Calls MR_DracoSaveOptions_Set_progress().
| void meshlib.DracoSaveOptions.setSaveTriCornerUVCoords | ( | boolean | value | ) |
if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software) Modifies a member variable of class MR::DracoSaveOptions named saveTriCornerUVCoords.
Calls MR_DracoSaveOptions_Set_saveTriCornerUVCoords().
| void meshlib.DracoSaveOptions.setSolidColor | ( | meshlib.Color | value | ) |
the color of whole object Modifies a member variable of class MR::DracoSaveOptions named solidColor. The reference to the parameter value might be preserved in this object in element solidColor.
Calls MR_DracoSaveOptions_Set_solidColor().
| void meshlib.DracoSaveOptions.setTelemetrySignal | ( | boolean | value | ) |
permit telemetry signal about saving Modifies a member variable of class MR::DracoSaveOptions named telemetrySignal.
Calls MR_DracoSaveOptions_Set_telemetrySignal().
| void meshlib.DracoSaveOptions.setTexture | ( | meshlib.MeshTexture | value | ) |
optional texture to save with the geometry Modifies a member variable of class MR::DracoSaveOptions named texture. The reference to the parameter value might be preserved in this object in element texture.
Calls MR_DracoSaveOptions_Set_texture().
| void meshlib.DracoSaveOptions.setUvMap | ( | meshlib.VertCoords2 | value | ) |
optional per-vertex uv coordinate to save with the geometry Modifies a member variable of class MR::DracoSaveOptions named uvMap. The reference to the parameter value might be preserved in this object in element uvMap.
Calls MR_DracoSaveOptions_Set_uvMap().
| void meshlib.DracoSaveOptions.setXf | ( | meshlib.AffineXf3d | value | ) |
this transformation can optionally be applied to all vertices (points) of saved object Modifies a member variable of class MR::DracoSaveOptions named xf. The reference to the parameter value might be preserved in this object in element xf.
Calls MR_DracoSaveOptions_Set_xf().
| meshlib.std_optional_MR_Color meshlib.DracoSaveOptions.solidColor | ( | ) |
the color of whole object Returns a pointer to a member variable of class MR::DracoSaveOptions named solidColor. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_solidColor().
|
static |
Static downcast from the base class MR::SaveSettings. Undefined behavior if the object isn't actually a DracoSaveOptions. The result refers to object.
Calls MR_DracoSaveOptions_MutableStaticDowncastFrom_MR_SaveSettings().
| boolean meshlib.DracoSaveOptions.telemetrySignal | ( | ) |
permit telemetry signal about saving Returns a pointer to a member variable of class MR::DracoSaveOptions named telemetrySignal. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_telemetrySignal().
| java.lang.foreign.MemorySegment meshlib.DracoSaveOptions.texture | ( | ) |
optional texture to save with the geometry Returns a pointer to a member variable of class MR::DracoSaveOptions named texture. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_texture(). Some types are raw C types, see the C bindings for the details.
| meshlib.SaveSettings meshlib.DracoSaveOptions.upcastToSaveSettings | ( | ) |
Upcasts to the base class MR::SaveSettings. The result refers to this object.
Calls MR_DracoSaveOptions_MutableUpcastTo_MR_SaveSettings().
| java.lang.foreign.MemorySegment meshlib.DracoSaveOptions.uvMap | ( | ) |
optional per-vertex uv coordinate to save with the geometry Returns a pointer to a member variable of class MR::DracoSaveOptions named uvMap. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_uvMap(). Some types are raw C types, see the C bindings for the details.
| java.lang.foreign.MemorySegment meshlib.DracoSaveOptions.xf | ( | ) |
this transformation can optionally be applied to all vertices (points) of saved object Returns a pointer to a member variable of class MR::DracoSaveOptions named xf. The reference to this object might be preserved as the return value.
Calls MR_DracoSaveOptions_Get_xf(). Some types are raw C types, see the C bindings for the details.