Polyline
Polylines with per-vertex bulges, polygons and rectangles. Vertices are staged with CadAddVertex and consumed by CadAddPolyline.
58 functions.
CadAddPlineMarkVecad CadAddPlineMark — the id-less variant: allocate the next free mark Id, store a default-styled mark along hEnt, and return the Id.
CadAddPolygonClosed, colour-filled polygon from the vertex buffer (Vecad CadAddPolygon).
CadAddPolylineCreates a new polyline and returns its handle.
CadAddPolylineWCreates a new polyline — w and returns its handle.
CadAddRectAxis-aligned rectangle (rotated by Angle°) as a closed 4-vertex polyline.
CadAddVertexPushes a vertex into the global vertex buffer consumed by CadAddPolyline, CadAddPolygon and related builders.
CadAddVertex2Append a rich vertex (per-segment widths + fit parameter) to the build buffer consumed by CadAddPolyline / CadAddPolylineW.
CadPlineContainPointPoint-in-polygon (even-odd ray cast over the tessellated boundary).
CadPlineDeleteVerDeletes the polyline vertex.
CadPlineGetAreaEnclosed area via Green's theorem ∮ x dy (always closes the ring).
CadPlineGetClosedReturns the closed of the polyline.
CadPlineGetDistPointReturns the dist point of the polyline.
CadPlineGetEndTanReturns the end tan of the polyline.
CadPlineGetEndWReturns the end w of the polyline.
CadPlineGetFitReturns the fit of the polyline.
CadPlineGetInterPointNearest intersection of a polyline with the segment (x1,y1)-(x2,y2).
CadPlineGetLengthTotal length: chord for straight segments, arc length (r·θ) for bulged.
CadPlineGetNearPointReturns the near point of the polyline.
CadPlineGetNumVersReturns the number of vertices of the polyline.
CadPlineGetPrmReturns the parameter of the polyline.
CadPlineGetRadiusRadius of the first arc (non-zero bulge) segment; 0 if all straight.
CadPlineGetStartTanReturns the start tan of the polyline.
CadPlineGetStartWReturns the start w of the polyline.
CadPlineGetVerReturns the vertex of the polyline.
CadPlineGetWidthReturns the width of the polyline.
CadPlineGetXReturns the x of the polyline.
CadPlineGetYReturns the y of the polyline.
CadPlineGetZReturns the z of the polyline.
CadPlineInsertVerInserts a vertex into the polyline before the given index.
CadPlinePutClosedSets the closed of the polyline.
CadPlinePutEndTanSets the end tan of the polyline.
CadPlinePutEndWSets the end w of the polyline.
CadPlinePutFitSets the fit of the polyline.
CadPlinePutNumVersSets the number of vertices of the polyline.
CadPlinePutPrmSets the parameter of the polyline.
CadPlinePutRadiusSets the radius of the polyline.
CadPlinePutStartTanSets the start tan of the polyline.
CadPlinePutStartWSets the start w of the polyline.
CadPlinePutVerSets the vertex of the polyline.
CadPlinePutWidthSets the width of the polyline.
CadPlinePutXSets the x of the polyline.
CadPlinePutYSets the y of the polyline.
CadPlinePutZSets the z of the polyline.
CadPlinePutZ1Sets the z1 of the polyline.
CadRectGetAngleRectangle get angle.
CadRectGetCenterRectangle get center.
CadRectGetHeightRectangle get height.
CadRectGetNameRectangle get name.
CadRectGetPrintRectangle get print.
CadRectGetRadiusRectangle get radius.
CadRectGetWidthRectangle get width.
CadRectPutAngleRectangle put angle.
CadRectPutCenterRectangle put center.
CadRectPutHeightRectangle put height.
CadRectPutNameRectangle put name.
CadRectPutPrintRectangle put print.
CadRectPutRadiusRectangle put radius.
CadRectPutWidthRectangle put width.