Class GraphSupportGenerator
Inheritance
GraphSupportGenerator
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class GraphSupportGenerator
Constructors
GraphSupportGenerator(DMesh3, DMeshAABBTree3, Double)
Declaration
public GraphSupportGenerator(DMesh3 mesh, DMeshAABBTree3 spatial, double cellSize)
Parameters
GraphSupportGenerator(DMesh3, DMeshAABBTree3, Int32)
Declaration
public GraphSupportGenerator(DMesh3 mesh, DMeshAABBTree3 spatial, int grid_resolution)
Parameters
Fields
CellSize
Declaration
Field Value
DebugPrint
Declaration
Field Value
ForceMinY
If this is not set, 'ground' is Mesh.CachedBounds.Min.y
(eg, if mesh is floating off ground, set this to 0, otherwise support stops at bottom of mesh)
Declaration
Field Value
Graph
Declaration
Field Value
GraphSurfaceDistanceOffset
Graph vertices will try to stay this far from surface
Declaration
public double GraphSurfaceDistanceOffset
Field Value
GroundVertices
Declaration
public HashSet<int> GroundVertices
Field Value
Type |
Description |
HashSet<Int32> |
|
Mesh
Declaration
Field Value
MeshSpatial
Declaration
public DMeshAABBTree3 MeshSpatial
Field Value
OptimizationAlpha
optimization (ie smoothing) "speed"
Declaration
public double OptimizationAlpha
Field Value
OptimizationRounds
Declaration
public int OptimizationRounds
Field Value
OverhangAngleDeg
overhang angle requiring support
Declaration
public double OverhangAngleDeg
Field Value
OverhangAngleOptimizeDeg
We will try to maintain at least this angle during graph optimization
(does this need to be separate from the one above?)
Declaration
public double OverhangAngleOptimizeDeg
Field Value
ProcessBottomUp
Get very different graphs is we generate bottom-up vs top-down
Declaration
public bool ProcessBottomUp
Field Value
Progress
Set this to be able to cancel running remesher
Declaration
public ProgressCancel Progress
Field Value
TipBaseVertices
Declaration
public HashSet<int> TipBaseVertices
Field Value
Type |
Description |
HashSet<Int32> |
|
TipVertices
Declaration
public HashSet<int> TipVertices
Field Value
Type |
Description |
HashSet<Int32> |
|
Properties
Dimensions
Declaration
public Vector3i Dimensions { get; }
Property Value
Grid
winding-number grid available after calling Compute()
Declaration
public DenseGrid3f Grid { get; }
Property Value
GridOrigin
Origin of the winding-number grid, in same coordinates as mesh
Declaration
public Vector3f GridOrigin { get; }
Property Value
Item[Int32, Int32, Int32]
Declaration
public float this[int i, int j, int k] { get; }
Parameters
Property Value
Methods
Cancelled()
if this returns true, abort computation.
Declaration
protected virtual bool Cancelled()
Returns
CellCenter(Int32, Int32, Int32)
Declaration
public Vector3f CellCenter(int i, int j, int k)
Parameters
Returns
Generate()
Declaration
MakeDebugGraphMesh()
Declaration
protected DMesh3 MakeDebugGraphMesh()
Returns
postprocess_graph()
Declaration
protected virtual void postprocess_graph()