Show / Hide Table of Contents

Interface IOctTreeInsertable

Namespace: CADability
Assembly: CADability.dll
Syntax
public interface IOctTreeInsertable

Methods

| Improve this Doc View Source

GetExtent(Double)

Gets the 3-dimensional extent of an object

Declaration
BoundingCube GetExtent(double precision)
Parameters
Type Name Description
System.Double precision

Precision of the test

Returns
Type Description
BoundingCube

The minmax cube

| Improve this Doc View Source

HitTest(ref BoundingCube, Double)

Tests whether an object is touched by the provided cube

Declaration
bool HitTest(ref BoundingCube cube, double precision)
Parameters
Type Name Description
BoundingCube cube

To test with

System.Double precision

Required precision

Returns
Type Description
System.Boolean

true if the object strikes the cube

| Improve this Doc View Source

HitTest(Projection, BoundingRect, Boolean)

Tests whether an object is inside or touched by the rectangle when projected with the provided projection

Declaration
bool HitTest(Projection projection, BoundingRect rect, bool onlyInside)
Parameters
Type Name Description
Projection projection

The projection for the test

BoundingRect rect

The rectangle to test the position

System.Boolean onlyInside

true: the object must be totaly inside the rectangle, false: the object must be totaly or partially inside the rectangle

Returns
Type Description
System.Boolean

true when the test succeedes, false otherwise

| Improve this Doc View Source

HitTest(Projection.PickArea, Boolean)

Tests whether an object is inside or touched by the provided area

Declaration
bool HitTest(Projection.PickArea area, bool onlyInside)
Parameters
Type Name Description
Projection.PickArea area

The area to check for

System.Boolean onlyInside

true: the object must be totaly inside the area, false: the object must be totaly or partially inside the area

Returns
Type Description
System.Boolean

true when the test succeedes, false otherwise

| Improve this Doc View Source

Position(GeoPoint, GeoVector, Double)

Returns the smallest parameter value (l) where the provided line hits the object so that the point fromHere + l * direction is on or close to the object. The result may be negative. Return double.MaxValue if there is no such point.

Declaration
double Position(GeoPoint fromHere, GeoVector direction, double precision)
Parameters
Type Name Description
GeoPoint fromHere

Startpoint of the line

GeoVector direction

Direction of the line

System.Double precision

Precision for the test

Returns
Type Description
System.Double

Position on the line

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX