MeshLib Python Docs
Loading...
Searching...
No Matches
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 mrviewerpy.addDistanceMapToScene ( meshlib.mrmeshpy.DistanceMap distancemap,
str name,
meshlib.mrmeshpy.AffineXf3f dmap_to_local_xf )
Add given distance map to scene tree.

◆ addLinesToScene()

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

◆ addMeshToScene()

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

◆ addPointCloudToScene()

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

◆ addVoxelsToScene()

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

◆ clearScene()

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

◆ getSelectedDistanceMaps()

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

◆ getSelectedMeshEdges()

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

◆ getSelectedMeshes()

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

◆ getSelectedMeshFaces()

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

◆ getSelectedObjects()

meshlib.mrmeshpy.std_vector_std_shared_ptr_Object mrviewerpy.getSelectedObjects ( )

◆ getSelectedPointCloudPoints()

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

◆ getSelectedPointClouds()

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

◆ getSelectedPolylines()

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

◆ getSelectedVoxels()

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

◆ launch()

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

◆ modifySelectedMesh()

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

◆ selectByName()

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

◆ selectByType()

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

◆ setSelectedMeshEdges()

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

◆ setSelectedMeshFaces()

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

◆ setSelectedPointCloudPoints()

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

◆ uiListEntries()

list[UiEntry] 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 mrviewerpy.uiPressButton ( list[str] arg0)
Simulate a button click. Use `uiListEntries()` to find button names.

◆ uiReadValueInt()

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

◆ uiReadValueReal()

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

◆ uiReadValueString()

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

◆ uiReadValueUint()

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

◆ uiWriteValueInt()

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

◆ uiWriteValueReal()

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

◆ uiWriteValueString()

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

◆ uiWriteValueUint()

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

◆ unselectAll()

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