Search Results for

    Show / Hide Table of Contents

    Class Reducer

    Inheritance
    Object
    MeshRefinerBase
    Reducer
    Inherited Members
    MeshRefinerBase.mesh
    MeshRefinerBase.constraints
    MeshRefinerBase.AllowCollapseFixedVertsWithSameSetID
    MeshRefinerBase.EdgeFlipTolerance
    MeshRefinerBase.edge_flip_tol
    MeshRefinerBase.Mesh
    MeshRefinerBase.Constraints
    MeshRefinerBase.SetExternalConstraints(MeshConstraints)
    MeshRefinerBase.Progress
    MeshRefinerBase.Cancelled()
    MeshRefinerBase.edge_flip_metric(Vector3d, Vector3d)
    MeshRefinerBase.collapse_creates_flip_or_invalid(Int32, Int32, Vector3d, Int32, Int32)
    MeshRefinerBase.flip_inverts_normals(Int32, Int32, Int32, Int32, Int32)
    MeshRefinerBase.can_collapse_constraints(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
    MeshRefinerBase.can_collapse_vtx(Int32, Int32, Int32, Int32)
    MeshRefinerBase.vertex_is_fixed(Int32)
    MeshRefinerBase.vertex_is_constrained(Int32)
    MeshRefinerBase.get_vertex_constraint(Int32)
    MeshRefinerBase.get_vertex_constraint(Int32, VertexConstraint)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public class Reducer : MeshRefinerBase

    Constructors

    Reducer()

    Declaration
    protected Reducer()

    Reducer(DMesh3)

    Declaration
    public Reducer(DMesh3 m)
    Parameters
    Type Name Description
    DMesh3 m

    Fields

    DebugEdges

    Declaration
    public List<int> DebugEdges
    Field Value
    Type Description
    List<Int32>

    EdgeQuadrics

    Declaration
    protected Reducer.QEdge[] EdgeQuadrics
    Field Value
    Type Description
    Reducer.QEdge[]

    EdgeQueue

    Declaration
    protected IndexPriorityQueue EdgeQueue
    Field Value
    Type Description
    IndexPriorityQueue

    ENABLE_DEBUG_CHECKS

    Declaration
    public bool ENABLE_DEBUG_CHECKS
    Field Value
    Type Description
    Boolean

    ENABLE_PROFILING

    Declaration
    public bool ENABLE_PROFILING
    Field Value
    Type Description
    Boolean

    HaveBoundary

    Declaration
    protected bool HaveBoundary
    Field Value
    Type Description
    Boolean

    IsBoundaryVtxCache

    Declaration
    protected bool[] IsBoundaryVtxCache
    Field Value
    Type Description
    Boolean[]

    MinEdgeLength

    Declaration
    protected double MinEdgeLength
    Field Value
    Type Description
    Double

    MinimizeQuadricPositionError

    Declaration
    public bool MinimizeQuadricPositionError
    Field Value
    Type Description
    Boolean

    PreserveBoundaryShape

    Declaration
    public bool PreserveBoundaryShape
    Field Value
    Type Description
    Boolean

    ProjectionMode

    Declaration
    public Reducer.TargetProjectionMode ProjectionMode
    Field Value
    Type Description
    Reducer.TargetProjectionMode

    ReduceMode

    Declaration
    protected Reducer.TargetModes ReduceMode
    Field Value
    Type Description
    Reducer.TargetModes

    target

    Declaration
    protected IProjectionTarget target
    Field Value
    Type Description
    IProjectionTarget

    TargetCount

    Declaration
    protected int TargetCount
    Field Value
    Type Description
    Int32

    vertQuadrics

    Declaration
    protected QuadricError[] vertQuadrics
    Field Value
    Type Description
    QuadricError[]

    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
    Type Name Description
    Int32 edgeID
    Vector3d vNewPos
    Int32 collapseToV
    Returns
    Type Description
    Reducer.ProcessResult

    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
    Type Name Description
    Double fMinEdgeLength
    Int32 nRounds
    Boolean MeshIsClosedHint

    FullProjectionPass()

    Declaration
    protected virtual void FullProjectionPass()

    get_projected_collapse_position(Int32, Vector3d)

    Declaration
    protected Vector3d get_projected_collapse_position(int vid, Vector3d vNewPos)
    Parameters
    Type Name Description
    Int32 vid
    Vector3d vNewPos
    Returns
    Type Description
    Vector3d

    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
    Type Description
    Boolean

    next_edge(Int32, out Boolean)

    Declaration
    protected virtual int next_edge(int cur_eid, out bool bDone)
    Parameters
    Type Name Description
    Int32 cur_eid
    Boolean bDone
    Returns
    Type Description
    Int32

    OnEdgeCollapse(Int32, Int32, Int32, DMesh3.EdgeCollapseInfo)

    Declaration
    protected virtual void OnEdgeCollapse(int edgeID, int va, int vb, DMesh3.EdgeCollapseInfo collapseInfo)
    Parameters
    Type Name Description
    Int32 edgeID
    Int32 va
    Int32 vb
    DMesh3.EdgeCollapseInfo collapseInfo

    OptimalPoint(Int32, ref QuadricError, Int32, Int32)

    Declaration
    protected Vector3d OptimalPoint(int eid, ref QuadricError q, int ea, int eb)
    Parameters
    Type Name Description
    Int32 eid
    QuadricError q
    Int32 ea
    Int32 eb
    Returns
    Type Description
    Vector3d

    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
    Type Name Description
    Int32 vID
    IProjectionTarget targetIn

    project_vertices()

    Declaration
    protected virtual IEnumerable<int> project_vertices()
    Returns
    Type Description
    IEnumerable<Int32>

    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
    Type Name Description
    IProjectionTarget target

    start_edges()

    Declaration
    protected virtual int start_edges()
    Returns
    Type Description
    Int32

    UpdateNeighbours(Int32)

    Declaration
    protected virtual void UpdateNeighbours(int vid)
    Parameters
    Type Name Description
    Int32 vid
    In This Article
    Back to top ViRGIS VR GIS