OrsMarchingCube

Plugin used to generate a contour mesh from a dataset

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.
date:July 2017
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)
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)
classmethod getAbout()
getChannelGUID()
keepAlive = False
multiple = False
classmethod openOnDataset(channelGUID)
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)
savable = False
setChannelGUID(guid)