RFFace.CalcPlane



Your Ad Here

Description

Calculates an underlying plane of the face geometry.

Syntax

Function RFFace.CalcPlane(pPlane As RFPlane) As RFErrorCode

The CalcPlane syntax has these parts:

Part Description
pPlane [OUTRFPlane Required. Underlyling plane of the face.

Sample

Dim rfErr As RapidForm.RFErrorCode
Dim fcObj As RapidForm.RFFace

    ' Assign the RFFace interface object
    Set fcObj = RapidForm.Face
    
    ' Pick a face
    Dim pickedID As RFEntityID
    rfErr = RapidForm.SelectTools.PickEntity(RF_PICK_FACE, 1, pickedID)
    
    ' If an error happens, exit the subroutine.
    If rfErr <> RF_SUCCESS Then
        MsgBox RapidForm.Application.GetErrorMessage(rfErr)
        Exit Sub
    End If
    
    rfErr = fcObj.SetID(pickedID)
        
    ' Calculate the underlying plane of the face
    Dim fcPl As RFPlane
    rfErr = fcObj.CalcPlane(fcPl)
    

Return to Rapidform Index


Your Ad Here