Table of Contents

Class PlanarPolygon3D

Namespace
NetTopologySuite.Operation.Distance3D
Assembly
NetTopologySuite.dll

Models a polygon lying in a plane in 3-dimensional Cartesian space. The polygon representation is supplied by a Polygon, containing coordinates with XYZ ordinates. 3D polygons are assumed to lie in a single plane. The plane best fitting the polygon coordinates is computed and is represented by a Plane3D.

public class PlanarPolygon3D
Inheritance
PlanarPolygon3D
Inherited Members

Constructors

PlanarPolygon3D(Polygon)

Creates an instance of this class using the provided Polygon.

public PlanarPolygon3D(Polygon poly)

Parameters

poly Polygon

The polygon

Properties

Plane

Gets a value indicating the plane

public Plane3D Plane { get; }

Property Value

Plane3D

Polygon

Gets a value indicating the polygon

public Polygon Polygon { get; }

Property Value

Polygon

Methods

Intersects(Coordinate)

Checks if intPt intersects with this PlanarPolygon3D.

public bool Intersects(Coordinate intPt)

Parameters

intPt Coordinate

The point to check

Returns

bool

true if intPt intersects this PlanarPolygon3d.

Intersects(Coordinate, LineString)

Checks if the point pt intersects with ring when projected to this instance's facing plane

public bool Intersects(Coordinate pt, LineString ring)

Parameters

pt Coordinate

A point

ring LineString

A ring

Returns

bool

true if point and linestring intersect