Platforms to show: All Mac Windows Linux Cross-Platform

ClipperPathMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Clipper MBS Tools Plugin 18.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This class contains a sequence of IntPoint vertices defining a single contour (see also terminology).
Example
// build a triangle and check its area and which points are inside
Var path As New ClipperPathMBS
path.Append(0, 0)
path.Append(200, 0)
path.Append(100, 150)

Var inside As New ClipperPointMBS(100, 50)
Var outside As New ClipperPointMBS(10, 140)

// PointInPolygon returns 0 for outside, 1 for inside and -1 for a point on the edge
MessageBox "Points: " + path.Count.ToString + EndOfLine + _
"Area: " + path.Area.ToString + EndOfLine + _
"Orientation: " + path.Orientation.ToString + EndOfLine + _
"100/50 inside: " + path.PointInPolygon(inside).ToString + EndOfLine + _
"10/140 inside: " + path.PointInPolygon(outside).ToString

Paths may be open and represent a series of line segments bounded by 2 or more vertices, or they may be closed and represent polygons. Whether or not a path is open depends on context. Closed paths may be 'outer' contours or 'hole' contours. Which they are depends on orientation.

Multiple paths can be grouped into a Paths class: ClipperPathsMBS.

This class has no subclasses.

Some methods using this class:

Some properties using this class:

Some examples using this class:

Some related classes:


The items on this page are in the following plugins: MBS Tools Plugin.


ClipperOffsetMBS   -   ClipperPathsMBS


The biggest plugin in space...