MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrviewerpy Namespace Reference

Classes

class  KeyMod
 
class  MouseButton
 
class  UiEntry
 
class  UiEntryType
 
class  UiValueInt
 
class  UiValueReal
 
class  UiValueString
 
class  UiValueUint
 
class  Viewer
 
class  ViewerLaunchParams
 
class  ViewerLaunchParamsMode
 
class  ViewerSetup
 
class  Viewport
 
class  ViewportFitDataParams
 
class  ViewportFitMode
 

Functions

None addDistanceMapToScene (meshlib.mrmeshpy.DistanceMap distancemap, str name, meshlib.mrmeshpy.AffineXf3f dmap_to_local_xf)
 
None addLinesToScene (meshlib.mrmeshpy.Polyline3 lines, str name)
 
None addMeshToScene (meshlib.mrmeshpy.Mesh mesh, str name)
 
None addPointCloudToScene (meshlib.mrmeshpy.PointCloud points, str name)
 
None addVoxelsToScene (meshlib.mrmeshpy.VdbVolume voxels, str name)
 
None clearScene ()
 
meshlib.mrmeshpy.std_vector_DistanceMap getSelectedDistanceMaps ()
 
meshlib.mrmeshpy.std_vector_TaggedBitSet_UndirectedEdgeTag getSelectedMeshEdges ()
 
meshlib.mrmeshpy.std_vector_TaggedBitSet_FaceTag getSelectedMeshFaces ()
 
meshlib.mrmeshpy.std_vector_Mesh getSelectedMeshes ()
 
meshlib.mrmeshpy.std_vector_std_shared_ptr_Object getSelectedObjects ()
 
meshlib.mrmeshpy.std_vector_TaggedBitSet_VertTag getSelectedPointCloudPoints ()
 
meshlib.mrmeshpy.std_vector_PointCloud getSelectedPointClouds ()
 
meshlib.mrmeshpy.std_vector_Polyline_Vector3_float getSelectedPolylines ()
 
meshlib.mrmeshpy.std_vector_VoxelsVolumeMinMax_std_shared_ptr_OpenVdbFloatGrid getSelectedVoxels ()
 
None launch (ViewerLaunchParams params=..., ViewerSetup setup=...)
 
None modifySelectedMesh (meshlib.mrmeshpy.Mesh mesh)
 
None selectByName (str objectName)
 
None selectByType (str typeName)
 
None setSelectedMeshEdges (meshlib.mrmeshpy.std_vector_TaggedBitSet_UndirectedEdgeTag arg0)
 
None setSelectedMeshFaces (meshlib.mrmeshpy.std_vector_TaggedBitSet_FaceTag arg0)
 
None setSelectedPointCloudPoints (meshlib.mrmeshpy.std_vector_TaggedBitSet_VertTag arg0)
 
list[UiEntryuiListEntries (list[str] arg0)
 
None uiPressButton (list[str] arg0)
 
UiValueInt uiReadValueInt (list[str] arg0)
 
UiValueReal uiReadValueReal (list[str] arg0)
 
UiValueString uiReadValueString (list[str] arg0)
 
UiValueUint uiReadValueUint (list[str] arg0)
 
None uiWriteValueInt (list[str] arg0, int arg1)
 
None uiWriteValueReal (list[str] arg0, float arg1)
 
None uiWriteValueString (list[str] arg0, str arg1)
 
None uiWriteValueUint (list[str] arg0, int arg1)
 
None unselectAll ()
 

Function Documentation

◆ addDistanceMapToScene()

None meshlib.mrviewerpy.addDistanceMapToScene ( meshlib.mrmeshpy.DistanceMap distancemap,
str name,
meshlib.mrmeshpy.AffineXf3f dmap_to_local_xf )
Add given distance map to scene tree.

◆ addLinesToScene()

None meshlib.mrviewerpy.addLinesToScene ( meshlib.mrmeshpy.Polyline3 lines,
str name )
Add given lines to scene tree.

◆ addMeshToScene()

None meshlib.mrviewerpy.addMeshToScene ( meshlib.mrmeshpy.Mesh mesh,
str name )
Add given mesh to scene tree.

◆ addPointCloudToScene()

None meshlib.mrviewerpy.addPointCloudToScene ( meshlib.mrmeshpy.PointCloud points,
str name )
Add given point cloud to scene tree.

◆ addVoxelsToScene()

None meshlib.mrviewerpy.addVoxelsToScene ( meshlib.mrmeshpy.VdbVolume voxels,
str name )
Add given voxels to scene tree.

◆ clearScene()

None meshlib.mrviewerpy.clearScene ( )
remove all objects from scene tree

◆ getSelectedDistanceMaps()

meshlib.mrmeshpy.std_vector_DistanceMap meshlib.mrviewerpy.getSelectedDistanceMaps ( )
Get copies of all selected voxel grids in the scene.

◆ getSelectedMeshEdges()

meshlib.mrmeshpy.std_vector_TaggedBitSet_UndirectedEdgeTag meshlib.mrviewerpy.getSelectedMeshEdges ( )
Get selected edge bitsets of the selected mesh objects.

◆ getSelectedMeshes()

meshlib.mrmeshpy.std_vector_Mesh meshlib.mrviewerpy.getSelectedMeshes ( )
Get copies of all selected meshes in the scene.

◆ getSelectedMeshFaces()

meshlib.mrmeshpy.std_vector_TaggedBitSet_FaceTag meshlib.mrviewerpy.getSelectedMeshFaces ( )
Get selected face bitsets of the selected mesh objects.

◆ getSelectedObjects()

meshlib.mrmeshpy.std_vector_std_shared_ptr_Object meshlib.mrviewerpy.getSelectedObjects ( )

◆ getSelectedPointCloudPoints()

meshlib.mrmeshpy.std_vector_TaggedBitSet_VertTag meshlib.mrviewerpy.getSelectedPointCloudPoints ( )
Get selected point bitsets of the selected point cloud objects.

◆ getSelectedPointClouds()

meshlib.mrmeshpy.std_vector_PointCloud meshlib.mrviewerpy.getSelectedPointClouds ( )
Get copies of all selected point clouds in the scene.

◆ getSelectedPolylines()

meshlib.mrmeshpy.std_vector_Polyline_Vector3_float meshlib.mrviewerpy.getSelectedPolylines ( )
Get copies of all selected polylines in the scene.

◆ getSelectedVoxels()

Get copies of all selected voxel grids in the scene.

◆ launch()

None meshlib.mrviewerpy.launch ( ViewerLaunchParams params = ...,
ViewerSetup setup = ... )
starts default viewer with given params and setup

◆ modifySelectedMesh()

None meshlib.mrviewerpy.modifySelectedMesh ( meshlib.mrmeshpy.Mesh mesh)
Assign a new mesh to the selected mesh object. Exactly one object must be selected.

◆ selectByName()

None meshlib.mrviewerpy.selectByName ( str objectName)
select objects in scene tree with given name, unselect others

◆ selectByType()

None meshlib.mrviewerpy.selectByType ( str typeName)
string typeName: {"Meshes", "Points", "Voxels"}
objects in scene tree with given type, unselect others

◆ setSelectedMeshEdges()

None meshlib.mrviewerpy.setSelectedMeshEdges ( meshlib.mrmeshpy.std_vector_TaggedBitSet_UndirectedEdgeTag arg0)
Set selected edge bitsets of the selected mesh objects.

◆ setSelectedMeshFaces()

None meshlib.mrviewerpy.setSelectedMeshFaces ( meshlib.mrmeshpy.std_vector_TaggedBitSet_FaceTag arg0)
Set selected face bitsets of the selected mesh objects.

◆ setSelectedPointCloudPoints()

None meshlib.mrviewerpy.setSelectedPointCloudPoints ( meshlib.mrmeshpy.std_vector_TaggedBitSet_VertTag arg0)
Set selected point bitsets of the selected point cloud objects.

◆ uiListEntries()

list[UiEntry] meshlib.mrviewerpy.uiListEntries ( list[str] arg0)
List existing UI entries at the specified path.
Pass an empty list to see top-level groups.
Add group name to the end of the vector to see its contents.
When you find the button you need, pass it to `uiPressButton()`.

◆ uiPressButton()

None meshlib.mrviewerpy.uiPressButton ( list[str] arg0)
Simulate a button click. Use `uiListEntries()` to find button names.

◆ uiReadValueInt()

UiValueInt meshlib.mrviewerpy.uiReadValueInt ( list[str] arg0)
Read a value from a drag/slider widget. This overload is for signed integers.

◆ uiReadValueReal()

UiValueReal meshlib.mrviewerpy.uiReadValueReal ( list[str] arg0)
Read a value from a drag/slider widget. This overload is for real numbers.

◆ uiReadValueString()

UiValueString meshlib.mrviewerpy.uiReadValueString ( list[str] arg0)
Read a value from a drag/slider widget. This overload is for strings.

◆ uiReadValueUint()

UiValueUint meshlib.mrviewerpy.uiReadValueUint ( list[str] arg0)
Read a value from a drag/slider widget. This overload is for unsigned integers.

◆ uiWriteValueInt()

None meshlib.mrviewerpy.uiWriteValueInt ( list[str] arg0,
int arg1 )
Write a value to a drag/slider widget. This overload is for signed integers.

◆ uiWriteValueReal()

None meshlib.mrviewerpy.uiWriteValueReal ( list[str] arg0,
float arg1 )
Write a value to a drag/slider widget. This overload is for real numbers.

◆ uiWriteValueString()

None meshlib.mrviewerpy.uiWriteValueString ( list[str] arg0,
str arg1 )
Write a value to a drag/slider widget. This overload is for strings.

◆ uiWriteValueUint()

None meshlib.mrviewerpy.uiWriteValueUint ( list[str] arg0,
int arg1 )
Write a value to a drag/slider widget. This overload is for unsigned integers.

◆ unselectAll()

None meshlib.mrviewerpy.unselectAll ( )
unselect all objects in scene tree