Class Reducer
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class Reducer : MeshRefinerBase
Constructors
Reducer()
Declaration
Reducer(DMesh3)
Declaration
Parameters
Type |
Name |
Description |
DMesh3 |
m |
|
Fields
DebugEdges
Declaration
public List<int> DebugEdges
Field Value
EdgeQuadrics
Declaration
protected Reducer.QEdge[] EdgeQuadrics
Field Value
EdgeQueue
Declaration
protected IndexPriorityQueue EdgeQueue
Field Value
ENABLE_DEBUG_CHECKS
Declaration
public bool ENABLE_DEBUG_CHECKS
Field Value
ENABLE_PROFILING
Declaration
public bool ENABLE_PROFILING
Field Value
HaveBoundary
Declaration
protected bool HaveBoundary
Field Value
IsBoundaryVtxCache
Declaration
protected bool[] IsBoundaryVtxCache
Field Value
MinEdgeLength
Declaration
protected double MinEdgeLength
Field Value
MinimizeQuadricPositionError
Declaration
public bool MinimizeQuadricPositionError
Field Value
PreserveBoundaryShape
Declaration
public bool PreserveBoundaryShape
Field Value
ProjectionMode
Declaration
public Reducer.TargetProjectionMode ProjectionMode
Field Value
ReduceMode
Declaration
protected Reducer.TargetModes ReduceMode
Field Value
target
Declaration
protected IProjectionTarget target
Field Value
TargetCount
Declaration
protected int TargetCount
Field Value
vertQuadrics
Declaration
protected QuadricError[] vertQuadrics
Field Value
Methods
begin_collapse()
Declaration
protected virtual void begin_collapse()
begin_ops()
Declaration
protected virtual void begin_ops()
begin_pass()
Declaration
protected virtual void begin_pass()
begin_project()
Declaration
protected virtual void begin_project()
begin_setup()
Declaration
protected virtual void begin_setup()
CollapseEdge(Int32, Vector3d, out Int32)
Declaration
protected virtual Reducer.ProcessResult CollapseEdge(int edgeID, Vector3d vNewPos, out int collapseToV)
Parameters
Returns
DebugCheckVertexConstraints()
Declaration
protected virtual void DebugCheckVertexConstraints()
DoDebugChecks()
Declaration
protected virtual void DoDebugChecks()
DoReduce()
Declaration
public virtual void DoReduce()
end_collapse()
Declaration
protected virtual void end_collapse()
end_ops()
Declaration
protected virtual void end_ops()
end_pass()
Declaration
protected virtual void end_pass()
end_project()
Declaration
protected virtual void end_project()
end_setup()
Declaration
protected virtual void end_setup()
FastCollapsePass(Double, Int32, Boolean)
Declaration
public virtual void FastCollapsePass(double fMinEdgeLength, int nRounds = 1, bool MeshIsClosedHint = false)
Parameters
FullProjectionPass()
Declaration
protected virtual void FullProjectionPass()
get_projected_collapse_position(Int32, Vector3d)
Declaration
protected Vector3d get_projected_collapse_position(int vid, Vector3d vNewPos)
Parameters
Returns
InitializeQueue()
Declaration
protected virtual void InitializeQueue()
InitializeVertexQuadrics()
Declaration
protected virtual void InitializeVertexQuadrics()
IsBoundaryV(Int32)
Declaration
protected bool IsBoundaryV(int vid)
Parameters
Type |
Name |
Description |
Int32 |
vid |
|
Returns
next_edge(Int32, out Boolean)
Declaration
protected virtual int next_edge(int cur_eid, out bool bDone)
Parameters
Returns
OnEdgeCollapse(Int32, Int32, Int32, DMesh3.EdgeCollapseInfo)
Declaration
protected virtual void OnEdgeCollapse(int edgeID, int va, int vb, DMesh3.EdgeCollapseInfo collapseInfo)
Parameters
OptimalPoint(Int32, ref QuadricError, Int32, Int32)
Declaration
protected Vector3d OptimalPoint(int eid, ref QuadricError q, int ea, int eb)
Parameters
Returns
Precompute(Boolean)
Declaration
protected virtual void Precompute(bool bMeshIsClosed = false)
Parameters
Type |
Name |
Description |
Boolean |
bMeshIsClosed |
|
project_vertex(Int32, IProjectionTarget)
Declaration
protected void project_vertex(int vID, IProjectionTarget targetIn)
Parameters
project_vertices()
Declaration
protected virtual IEnumerable<int> project_vertices()
Returns
ReduceToEdgeLength(Double)
Declaration
public virtual void ReduceToEdgeLength(double minEdgeLen)
Parameters
Type |
Name |
Description |
Double |
minEdgeLen |
|
ReduceToTriangleCount(Int32)
Declaration
public virtual void ReduceToTriangleCount(int nCount)
Parameters
Type |
Name |
Description |
Int32 |
nCount |
|
ReduceToVertexCount(Int32)
Declaration
public virtual void ReduceToVertexCount(int nCount)
Parameters
Type |
Name |
Description |
Int32 |
nCount |
|
Reproject()
Declaration
protected virtual void Reproject()
RuntimeDebugCheck(Int32)
Declaration
protected virtual void RuntimeDebugCheck(int eid)
Parameters
Type |
Name |
Description |
Int32 |
eid |
|
SetProjectionTarget(IProjectionTarget)
Declaration
public void SetProjectionTarget(IProjectionTarget target)
Parameters
start_edges()
Declaration
protected virtual int start_edges()
Returns
UpdateNeighbours(Int32)
Declaration
protected virtual void UpdateNeighbours(int vid)
Parameters
Type |
Name |
Description |
Int32 |
vid |
|