Package | Description |
---|---|
com.solibri.geometry.algorithms | |
com.solibri.geometry.primitive2d | |
com.solibri.smc.api.footprints |
Modifier and Type | Method and Description |
---|---|
static MPolygon2d |
ConvexHull.of(Polygon2d polygon)
Returns the convex hull of the given polygon.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MPolygon2d
Interface for handling simple polygons without holes in the XY-plane.
|
interface |
MRectangle2d
Interface for handling rectangles in the XY-plane.
|
interface |
MTriangle2d
Interface that represents a triangle in the XY-plane.
|
interface |
Rectangle2d
Read-only interface for handling rectangles in the XY-plane.
|
interface |
Triangle2d
Read-only interface for 2-dimensional triangles.
|
Modifier and Type | Method and Description |
---|---|
static Polygon2d |
Polygon2d.create(List<? extends Vector2d> vertices)
Creates a 2-dimensional polygon with the given vertices.
|
static Polygon2d |
Polygon2d.create(Polygon2d polygon)
Creates a 2-dimensional polygon with the contents deep copied from the given
polygon.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Polygon2d.contains(Polygon2d polygon)
Returns true if the given polygon is inside this polygon.
|
static MPolygon2d |
MPolygon2d.create(Polygon2d polygon)
Creates a 2-dimensional polygon with the contents deep copied from the given
polygon.
|
static Polygon2d |
Polygon2d.create(Polygon2d polygon)
Creates a 2-dimensional polygon with the contents deep copied from the given
polygon.
|
static Area |
Area.create(Polygon2d polygon,
double resize)
Creates an area with the given polygon and resize value.
|
static MArea |
MArea.create(Polygon2d polygon,
double offset)
Creates an area with the given polygon and resize value.
|
default double |
Polygon2d.distance(Polygon2d polygon)
Returns the minimum distance between this polygon and the given polygon.
|
double |
Polygon2d.distanceSquared(Polygon2d polygon)
Returns the square of the distance between this polygon and the given
polygon.
|
boolean |
Polygon2d.intersects(Polygon2d polygon)
Returns true if this polygon intersects the given polygon.
|
Segment2d |
Polygon2d.shortestSegmentTo(Polygon2d polygon)
Returns the shortest segment between this polygon and the given polygon.
|
Modifier and Type | Method and Description |
---|---|
Polygon2d |
Footprint.getOutline()
Returns a simple one-polygon footprint of the component.
|
Copyright © 2019 Solibri, Inc.. All rights reserved.