RFEdgeUse.GetEndPoint



Your Ad Here

Description

Retrieves the coordinates of end vertex.

Syntax

Function RFEdgeUse.GetEndPoint(pPoint As RFPoint3) As RFErrorCode

The GetEndPoint syntax has these parts:

Part Description
pPoint [OUTRFPoint3 Required. Coordinates of the end vertex.

Remarks

Sample

Dim rfErr As RapidForm.RFErrorCode
Dim shObj As RapidForm.RFShell
Dim fcObj As RapidForm.RFFace
Dim edObj As RapidForm.RFEdgeUse

    ' Assign RFShell, RFFace and RFEdgeUse interface objects
    Set shObj = RapidForm.Shell
    Set fcObj = RapidForm.Face
    Set edObj = RapidForm.EdgeUse
    
    ' Pick a face.
    Dim pickedID As RFEntityID
    rfErr = RapidForm.SelectTools.PickEntity(RF_PICK_FACE, 1, pickedID)
    fcObj.SetID (pickedID)
    
    Dim vtID(2) As RFEntityID
    
    ' Retrieves 3 vertices of the face.
    rfErr = fcObj.GetVertices(vtID(0), vtID(1), vtID(2))
    
    ' Identify an edge use by using the first two vertices.
    rfErr = edObj.SetID(vtID(0), vtID(1))
    
   
    ' Retrieves the geometries
    Dim stPt As RFPoint3
    Dim edPt As RFPoint3
    
    ' Retrieves the start point.
    rfErr = edObj.GetStartPoint(stPt)
    
    ' Retrieves the end point.
    rfErr = edObj.GetEndPoint(edPt)
    
    ' Retrieves the start and end point at once.
    rfErr = edObj.GetPoints(stPt, edPt)

Return to Rapidform Index


Your Ad Here