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

Public Member Functions

 DracoSaveOptions (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 DracoSaveOptions ()
 DracoSaveOptions (meshlib.DracoSaveOptions _other)
meshlib.DracoSaveOptions assignFromAnother (meshlib.DracoSaveOptions _other)
int compressionLevel ()
void setCompressionLevel (int value)
int positionQuantizationBits ()
void setPositionQuantizationBits (int value)
boolean onlyValidPoints ()
void setOnlyValidPoints (boolean value)
boolean packPrimitives ()
void setPackPrimitives (boolean value)
java.lang.foreign.MemorySegment colors ()
void setColors (meshlib.VertColors value)
java.lang.foreign.MemorySegment primitiveColors ()
void setPrimitiveColors (meshlib.FaceColors value)
java.lang.foreign.MemorySegment uvMap ()
void setUvMap (meshlib.VertCoords2 value)
boolean saveTriCornerUVCoords ()
void setSaveTriCornerUVCoords (boolean value)
java.lang.foreign.MemorySegment texture ()
void setTexture (meshlib.MeshTexture value)
meshlib.std_string materialName ()
void setMaterialName (java.lang.String value)
java.lang.foreign.MemorySegment xf ()
void setXf (meshlib.AffineXf3d value)
meshlib.std_optional_MR_LengthUnit lengthUnit ()
void setLengthUnit (meshlib.LengthUnit value)
meshlib.std_optional_MR_Color solidColor ()
void setSolidColor (meshlib.Color value)
boolean telemetrySignal ()
void setTelemetrySignal (boolean value)
meshlib.std_function_bool_from_float progress ()
void setProgress (meshlib.std_function_bool_from_float value)
meshlib.SaveSettings upcastToSaveSettings ()
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.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)

Detailed Description

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.

Constructor & Destructor Documentation

◆ DracoSaveOptions() [1/3]

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.

◆ DracoSaveOptions() [2/3]

meshlib.DracoSaveOptions.DracoSaveOptions ( )

Constructs an empty (default-constructed) instance.

Calls MR_DracoSaveOptions_DefaultConstruct().

◆ DracoSaveOptions() [3/3]

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().

Member Function Documentation

◆ assignFromAnother()

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().

◆ colors()

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.

◆ compressionLevel()

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().

◆ lengthUnit()

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().

◆ materialName()

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().

◆ onlyValidPoints()

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().

◆ packPrimitives()

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().

◆ positionQuantizationBits()

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().

◆ primitiveColors()

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.

◆ progress()

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().

◆ saveTriCornerUVCoords()

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().

◆ setColors()

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().

◆ setCompressionLevel()

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().

◆ setLengthUnit()

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().

◆ setMaterialName()

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().

◆ setOnlyValidPoints()

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().

◆ setPackPrimitives()

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().

◆ setPositionQuantizationBits()

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().

◆ setPrimitiveColors()

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().

◆ setProgress()

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().

◆ setSaveTriCornerUVCoords()

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().

◆ setSolidColor()

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().

◆ setTelemetrySignal()

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().

◆ setTexture()

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().

◆ setUvMap()

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().

◆ setXf()

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().

◆ solidColor()

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().

◆ staticDowncastFromSaveSettings()

meshlib.DracoSaveOptions meshlib.DracoSaveOptions.staticDowncastFromSaveSettings ( meshlib.SaveSettings object)
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().

◆ telemetrySignal()

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().

◆ texture()

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.

◆ upcastToSaveSettings()

meshlib.SaveSettings meshlib.DracoSaveOptions.upcastToSaveSettings ( )

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

Calls MR_DracoSaveOptions_MutableUpcastTo_MR_SaveSettings().

◆ uvMap()

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.

◆ xf()

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.


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