OrsMarchingCube

Generates a mesh from a dataset’s contour

author:ORS Team
contact:http://theobjects.com
email:info@theobjects.com
organization:Object Research Systems (ORS), Inc.
address:760 St-Paul West, suite 101, Montréal, Québec, Canada, H3C 1M4
copyright:Object Research Systems (ORS), Inc. All rights reserved 2018.
date:Sep 16 2015 13:15
dragonflyVersion:
 3.0
UUID:af8b0d3a761511e78b5f448a5b5d70c0

Class Code

class OrsPythonPlugins.OrsMarchingCube.OrsMarchingCube.OrsMarchingCube(varname=None, managed=True)
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
closable = True
closeWidget(name)
classmethod contextualMenu(context)
generateALinearContourMeshFromAChannel(dataset: ORSModel.ors.Channel, isovalue, samplingX, samplingY, samplingZ)
interfacemethod generateALinearContourMeshFromAChannelAndPublish(dataset: ORSModel.ors.Channel, isovalue, samplingX, samplingY, samplingZ)

Generates a mesh from a dataset using marching cube algorithm

Parameters:
  • dataset (ORSModel.ors.Channel) – a ROI on which the mesh should be obtained
  • isovalue (float) – value in the dataset at which the mesh is obtained
  • samplingX (int) – sampling in X
  • samplingY (int) – sampling in Y
  • samplingZ (int) – sampling in Z
Returns:

contourMesh (ORSModel.ors.Mesh) – return the mesh generated

generateContourMeshFromAROI(aROI: ORSModel.ors.ROI, isovalue, samplingX, samplingY, samplingZ)
interfacemethod generateContourMeshFromAROIAndPublish(aROI: ORSModel.ors.ROI, isovalue, samplingX, samplingY, samplingZ)

Generates a mesh from a ROI using a vtk marching cube algorithm

Parameters:
  • aROI (ORSModel.ors.ROI) – a ROI on which the mesh should be obtained
  • isovalue (float) – threshold
  • samplingX (int) – sampling in X
  • samplingY (int) – sampling in Y
  • samplingZ (int) – sampling in Z
Returns:

contourMesh (ORSModel.ors.Mesh) – return the mesh generated

interfacemethod generateMarchingCube(datasetA, isovalue, timestep, samplingX=1, samplingY=1, samplingZ=1, linear=True)

Generates a mesh from a dataset using a marching cube algorithm

Parameters:
  • datasetA (ORSModel.ors.Channel) – dataset on which the mesh should be obtained
  • isovalue (float) – value in the dataset at which the mesh is obtained
  • timestep (int) – time index in the dataset
  • samplingX (int) – sampling in X
  • samplingY (int) – sampling in Y
  • samplingZ (int) – sampling in Z
  • linear (bool) – sampling mode. If True, linear interpolation is used. If False, nearest value is used.
Returns:
  • mesh (ORSModel.ors.Mesh) – generated mesh
  • isMarchingCubeMeshComputationCancelled (bool) – flag to know if the computation has been cancelled by the user
generateMarchingCubeAndPublish(datasetA, isovalue, timestep, samplingX=1, samplingY=1, samplingZ=1, linear=True)
getChannelOrROIGUID()
keepAlive = False
multiple = False
classmethod openOnDataset(objectGUID)
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)
savable = False
setChannelOrROIGUID(guid)