Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
----------------------------------------------------------------------------------------------------------------------------------Project -
A program for generating offset of polyline curve using Dxf format of the Cad drawing .
Introduction Polyline curves are composed of line segments and arcs are widely used in engineering
applications . The program of generating offset comprises of three steps . Firstly , the offsets of all the
segments of polyline curves are calculated . Then all the offsets are trimmed or joined to build polyline
curves that are called untrimmed offset curves . Finally , a clipping algorithm is applied to the untrimmed
offset curves to yield the final result . The offset program can deal with self intersection , overlapping and
small arcs .
Description Polyline curve consist of combination of lines and curves . The program will first take
partwise segments and perform the offset and then these separate offset parts are trimmed and at last a
clipping algorithm is applied to the untrimmed offset curves for the final result . The result is then converted
back to the dxf format file which can be then viewed in any Cad software . In offsetting a given segment of a
polyline curve first we take first and last point of the given segment say line then according to the given
offline distance , the points are shifted and then linear interpolation applied for the given line . In this way all
the segments are offsetted to the given distance and then other parts of program follow it . The program is
written in visual c++ software .