pcGetPathRefPoint
pcGetPathRefPoint(d_cvId l_objectVertices l_pathVertices t_endpoint l_offset) =>l_newObjVertices/nil
Description
Creates a list of coordinates representing the object specified by the l_objectVertices argument when offset from the specified endpoint of the parameterized path, where the offset is defined by l_offset and the path is defined l_pathVertices.
Arguments
Value Returned
|
List of coordinates specifying the object as located in relationship to the specified endpoint of the parameterized path, offset by the specified distance. The list is in the following format: |
|
Examples
obj = list( 4.0:1.0 5.0:1.0 5.0:2.5 6.5:2.5 6.5:-0.5 4.0:-0.5 )
path = list( 0:0 0:9 )
ref = pcGetPathRefPoint( geGetEditCellView() obj path "last" nil ) => ( (4.0 10.0)
(5.0 10.0)
(5.0 11.5)
(6.5 11.5)
(6.5 8.5)
(4.0 8.5)
)
The example specifies the original object with the variable obj and the parameterized path with the variable path. The pcGetPathRefPoint function then determines the new coordinates for the object in relationship to the last endpoint of the path, with no offset.
Return to top