Bcc.ArcFrom3Entities({entity1}, {entity2}, {entity3})

Description

This function is utilized to form an arc which is tangent to 3 entities.  

Parameters

  • entity1 - table providing the first entity definition
  • entity2 - table providing the second entity definition
  • entity3 - table providing the third entity definition 


The supported entity types available as inputs are:


Return

Returns a table containing an arc definition in the ArcFromPoints format.

Examples

-- Create an arc which is tangent to 3 entities

function ArcFrom3Ents()


    --Define the entity colors to use

       inputGeoColor = "DarkGreen"

       outputGeoColor = "Black"

       

       --Create the input entities

       ent1 = {Type="Point", Point={-30,0,0}, Color=inputGeoColor}

       ent2 = {Type="Line", StartPoint={30,0,0}, EndPoint={0,30,0}, Color=inputGeoColor}

       ent3 = {Type="Line", StartPoint={30,0,0}, EndPoint={0,-30,0}, Color=inputGeoColor}

       

       --Generate the arc from the 3 entities

       arc = Bcc.ArcFrom3Entities(ent1, ent2, ent3)

       

       --Set the arc color to the output color

       arc.Color = outputGeoColor

       

       -- Create the geometry that was used as inputs as well as the arc

       Bcc.StartUndo("Arc From 3 Entities")

       Bcc.AddEntities({Type="ContourList", List = {ent1,ent2,ent3,arc}})

       Bcc.EndUndo()

end