arcs in polyline

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
branka
Posts: 5
Joined: 28 Nov 2006, 13:29

arcs in polyline

Post by branka » 29 Nov 2006, 13:05

I have another question. It says in the help that polyline is made up from arcs and lines and that vertexes are end points of those arcs and lines. I was wondering how i could get more information about the arc, its curvature. Because if I only get end points, arc is reduced to a line and a lot of information is lost

Thanks in advance

support
Posts: 3256
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 29 Nov 2006, 16:36

Hello Branka,

There two ways:
<ul><li>Easy one:
use the following property:
<b>__property</b> Classes::TList* DottedSingPts = {read=FDottedSingPts};

Contains coordinates of the polyline as a list of the pointers to TFPoint type.</li>
<li>Difficult one:
It is nescessary to analize <b>Bulge</b> property of every vertex received from the <b>TsgDXFPolyline.Entities</b> list.
<b>AutoCAD</b> documantion says:
<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">The bulge is the tangent of one fourth the included angle for an arc segment, made negative if the arc goes clockwise from the start point to the endpoint. A bulge of 0 indicates a straight segment, and a bulge of 1 is a semicircle.<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
Basing on this information polyline has to be built.
</li></ul>
Sergey.

please post questions to the forum or write to support@cadsofttools.com

Post Reply