Class Box
Represents a 3D box.
Inheritance
System.Object
Box
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public class Box : object
Constructors
| Improve this Doc View SourceBox(Plane, Interval, Interval, Interval)
Initializes a new instance of the Box class.
Declaration
public Box(Plane plane, Interval domainX, Interval domainY, Interval domainZ)
Parameters
Type | Name | Description |
---|---|---|
Plane | plane | Base plane of the box. |
Interval | domainX | Range of values in the X axis. |
Interval | domainY | Range of values in the Y axis. |
Interval | domainZ | Range of values in the Z axis. |
Box(Point3d, Point3d)
Initializes a new instance of the Box class from 2 corners. Both corners will form the diagonal of the box.
Declaration
public Box(Point3d lower, Point3d upper)
Parameters
Type | Name | Description |
---|---|---|
Point3d | lower | Lower left corner point. |
Point3d | upper | Upper right corner point. |
Properties
| Improve this Doc View SourceCenter
Gets the center point of the box.
Declaration
public Point3d Center { get; }
Property Value
Type | Description |
---|---|
Point3d |
DomainX
Gets or sets the box's X axis domain.
Declaration
public Interval DomainX { get; set; }
Property Value
Type | Description |
---|---|
Interval |
DomainY
Gets or sets the box's Y axis domain.
Declaration
public Interval DomainY { get; set; }
Property Value
Type | Description |
---|---|
Interval |
DomainZ
Gets or sets the box's Z axis domain.
Declaration
public Interval DomainZ { get; set; }
Property Value
Type | Description |
---|---|
Interval |
Max
Gets the corner point with highest values.
Declaration
public Point3d Max { get; }
Property Value
Type | Description |
---|---|
Point3d |
Min
Gets the corner point with lowest values.
Declaration
public Point3d Min { get; }
Property Value
Type | Description |
---|---|
Point3d |
Plane
Gets or sets the box's base plane.
Declaration
public Plane Plane { get; set; }
Property Value
Type | Description |
---|---|
Plane |