Straighten Method (IPolyLine3D)

Straighten Method (IPolyLine3D) | Send Feedback
See Also

VertexIndexStart
  Index corresponding to the vertex at which to start straightening the 3D PolyLine (see Remarks)

VertexIndexEnd
  Index corresponding to the vertex at which to end straightening the 3D PolyLine

Straightens the 3D PolyLine between the specified vertices.

# Syntax

Visual Basic |
--- | ---
    Sub Straighten( _
       ByVal VertexIndexStart As System.Integer, _
       ByVal VertexIndexEnd As System.Integer _
    )

C# |
--- | ---
    void Straighten(
       System.int VertexIndexStart,
       System.int VertexIndexEnd
    )

JavaScript |
--- | ---
    Straighten(
       VertexIndexStart : Number,
       VertexIndexEnd : Number
    )

COM native C++ |
--- | ---
    HRESULT Straighten(
       LONG VertexIndexStart,
       LONG VertexIndexEnd
    )

C++ |
--- | ---
    DSRESULT Straighten(
       long VertexIndexStart,
       long VertexIndexEnd
    )

#### Parameters

VertexIndexStart
  Index corresponding to the vertex at which to start straightening the 3D PolyLine (see Remarks)
VertexIndexEnd
  Index corresponding to the vertex at which to end straightening the 3D PolyLine

# Remarks

Before calling this method, call IPolyLine3D::GetVerticesCount to get valid values for VertexIndexStart and VertexIndexEnd.

# See Also

####

IPolyLine3D Interface
IPolyLine3D Members
IPolyLine3D::Spline Method
IPolyLine3D::Split Method

# Availability

DraftSight V1R3.0