Constructors
OrthogonalBox
#Create a new spatial box from a rhinocommon bounding box.
Parameters:
| box (BoundingBox) | Box. |
OrthogonalBox
#Create a new box.
Properties
Methods
Corner
#Gets the corner associated with the given index.
Parameters:
| index (int) | Index of corner. |
Returns: Corner point.
DistanceToFurthestPoint
#Measure the distance to the furthest point on the box.
Parameters:
| point (Locus) | Point. |
Returns: Distance to interior.
DistanceToNearestPoint
#Measure the distance to the interior of the box.
Parameters:
| point (Locus) | Point. |
Returns: Distance to interior.
Edge
#Gets the edge associated with the given index.
Parameters:
| index (int) | Index of edge. |
Returns: Edge line.
Face
#Gets the face associated with the given index. 0=bottom, 1=front, 2=right, 3=back, 4=left, 5=top.
Parameters:
| index (int) | Index of face. |
Returns: Face.
Grow
#Gros this region until it encompasses the given coordinates.
Parameters:
| point (Locus) | Point. |
Returns: Modified region.
Intersection
#Create the intersection of a collection of regions.
Parameters:
| regions (params OrthogonalBox[]) | Regions to intersect. |
Returns: Largest region which is contained inside all specified regions.
IntersectsWith
#Finds whether two regions intersect.
Parameters:
| other (OrthogonalBox) | Other region. |
Returns: True if the intersection between two regions would not be empty.
IsCoincident
#Test whether a coordinate triplet is exactly coincident with the boundary region. If you need a tolerance based test, you must write your own.
Parameters:
| point (Locus) | Point. |
Returns: True if the coordinate is exactly on the boundary region.
IsInside
#Test whether a coordinate triplet is inside this region. Coincidence is assumed to mean inclusion along the min faces, but not along the max faces. This allows distinct inclusion amongst precisely stacked regions.
Parameters:
| point (Locus) | Point. |
Returns: True if the coordinate is inside this region.
QuadranceToFurthestPoint
#Measure the quadrance (ie. distance squared) to the furthest point on the box.
Parameters:
| point (Locus) | Point. |
Returns: Quadrance to interior.
QuadranceToLine
#Measure the minimum and maximum quadrance to a line.
Parameters:
| line (LinearSegment) | Line. |
| min (out double) | Minimum quadrance. |
| max (out double) | Maximum quadrance. |
QuadranceToNearestPoint
#Measure the quadrance (ie. distance squared) to the interior of the box.
Parameters:
| point (Locus) | Point. |
Returns: Quadrance to interior.
QuadranceToPoint
#Measure the minimum and maximum quadrance to a point.
QuadranceToSlice
#Measure the minimum and maximum quadrance to a slice.
Parameters:
| slice (InfinitePlane) | Slice. |
| min (out double) | Minimum quadrance. |
| max (out double) | Maximum quadrance. |
QuadranceToSphere
#Measure the minimum and maximum quadrance to a sphere.
Parameters:
| sphere (SphericalBall) | Sphere. |
| min (out double) | Minimum quadrance. |
| max (out double) | Maximum quadrance. |
ToString
#Returns the fully qualified type name of this instance.
Returns: A String containing a fully qualified type name.
Overrides: ValueType.ToString
Union
#Create the union of a collection of regions.
Parameters:
| regions (params OrthogonalBox[]) | Regions to union. |
Returns: Region which contains all specified regions.