Platforms to show: All Mac Windows Linux Cross-Platform

ClipperPathsMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Clipper MBS Tools Plugin 18.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class for a list of paths.
Example
// combine several squares into one outline with a union
Var squares As New ClipperPathsMBS
For i As Integer = 0 To 2
Var square As New ClipperPathMBS
square.Append(i * 40, 0)
square.Append(i * 40 + 50, 0)
square.Append(i * 40 + 50, 50)
square.Append(i * 40, 50)
squares.Append square
Next

Var engine As New ClipperEngineMBS
Call engine.AddPaths(squares, ClipperMBS.PolyType.Subject, True)

Var solution As New ClipperPathsMBS
If engine.Execute(ClipperMBS.ClipType.Union, solution, ClipperMBS.PolyFillType.NonZero) Then
MessageBox squares.Count.ToString + " squares merged into " + solution.Count.ToString + " polygon(s)"
End If

This class is fundamental to the Clipper Library. It's a list or array of one or more Path structures. (The Path structure contains an ordered list of vertices that make a single contour.)

Paths may open (a series of line segments), or they may closed (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.

This class has no subclasses.

Some methods using this class:

Some examples using this class:

Some related classes:


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


ClipperPathMBS   -   ClipperPointMBS


The biggest plugin in space...