OrsMarchingCube¶
Generates a mesh from a dataset’s contour
- author:
Dragonfly Team
- contact:
- email:
- organization:
Comet Technologies Canada Inc.
- address:
460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7
- copyright:
Comet Technologies Canada Inc. All rights reserved 2023.
- date:
Sep 16 2015 13:15
- dragonflyVersion:
3.0
- UUID:
af8b0d3a761511e78b5f448a5b5d70c0
Class Code¶
- class OrsPythonPlugins.OrsMarchingCube.OrsMarchingCube.OrsMarchingCube(*args, **kwargs)¶
- interfacemethod generateALinearContourMeshFromAChannelAndPublish(dataset: Channel, isovalue: float, samplingX: int, samplingY: int, samplingZ: int, IProgress: Progress = None) Mesh¶
Generates a mesh from a dataset using a vtk marching cube algorithm or Ors 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
IProgress (ORSModel.ors.Progress) – The Progress bar
- Returns:
contourMesh (ORSModel.ors.Mesh) – return the mesh generated
- interfacemethod generateContourMeshFromAROIAndPublish(aROI: ROI, isovalue: float, samplingX: int, samplingY: int, samplingZ: int) Mesh¶
Generates a mesh from a ROI using a vtk marching cube algorithm or Ors marching cube algorithm (threshold = 50)
- 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: Channel, isovalue: float, timestep: int, samplingX: int = 1, samplingY: int = 1, samplingZ: int = 1, linear: bool = True, IProgress: Progress = None) Mesh¶
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.
IProgress (ORSModel.ors.Progress) – The Progress bar
- Returns:
mesh (ORSModel.ors.Mesh) – generated mesh
- classmethod getMainFormClass()¶
Gets the class of the main form
- Returns:
output –