Class MarchingCubesPro
Inheritance
MarchingCubesPro
Namespace: gs
Assembly: cs.temp.dll.dll
Syntax
public class MarchingCubesPro
Constructors
MarchingCubesPro()
Declaration
public MarchingCubesPro()
Fields
Bounds
bounding-box we will mesh inside of. We use the min-corner and
the width/height/depth, but do not clamp vertices to stay within max-corner,
we may spill one cell over
Declaration
public AxisAlignedBox3d Bounds
Field Value
Type |
Description |
AxisAlignedBox3d |
|
CancelF
if this function returns true, we should abort calculation
Declaration
public Func<bool> CancelF
Field Value
CellDimensions
Declaration
public Vector3i CellDimensions
Field Value
Type |
Description |
Vector3i |
|
CubeSize
Length of edges of cubes that are marching.
currently, # of cells along axis = (int)(bounds_dimension / CellSize) + 1
Declaration
Field Value
Implicit
this is the function we will evaluate
Declaration
public ImplicitFunction3d Implicit
Field Value
Type |
Description |
ImplicitFunction3d |
|
IsoValue
mesh surface will be at this isovalue. Normally 0 unless you want
offset surface or field is not a distance-field.
Declaration
Field Value
Mesh
Declaration
Field Value
ParallelCompute
Use multi-threading? Generally a good idea unless problem is very small or
you are multi-threading at a higher level (which may be more efficient as
we currently use very fine-grained spinlocks to synchronize)
Declaration
public bool ParallelCompute
Field Value
RootMode
Which rootfinding method will be used to converge on surface along edges
Declaration
public MarchingCubesPro.RootfindingModes RootMode
Field Value
RootModeSteps
number of iterations of rootfinding method (ignored for SingleLerp)
Declaration
Field Value
Methods
Generate()
Run MC algorithm and generate Output mesh
Declaration
GenerateContinuation(IEnumerable<Vector3d>)
Declaration
public void GenerateContinuation(IEnumerable<Vector3d> seeds)
Parameters