Bcc.ArcFrom3Points
Bcc.ArcFrom3Points({point1}, {point2}, {point3})
Description
This function is utilized to create an arc from 3 given points.
Parameters
- point1 - table providing the x, y, and z coordinates of the first endpoint of the arc
- point2 - table providing the x, y, and z coordinates of the second point which is anywhere along the arc
- point3 - table providing the x, y, and z coordinates of the end point of the arc
Return
Returns a table containing an arc definition in the ArcFromPoints format.
Examples
-- This is a simple function to create an arc from 3 given points
-- The 3 points represent the start, end and a point along the arc
function ArcFrom3Pnts()
-- Define the 3 points we want to use
pnt1 = { 10.00000000,17.32050896,0}
pnt2 = { 16.18945122,11.74315262,0}
pnt3 = { 17.32050896,10.00000000,0}
-- Get an arc entity from the function
arc = Bcc.ArcFrom3Points(pnt1, pnt2, pnt3)
-- Create the arc entity and the 3 points
Bcc.StartUndo("ArcFrom3Pnts")
Bcc.AddEntity(arc)
Bcc.AddEntity({Type = "Point", Point = pnt1})
Bcc.AddEntity({Type = "Point", Point = pnt2})
Bcc.AddEntity({Type = "Point", Point = pnt3})
Bcc.EndUndo()
end