Header menu logo Euclid

FreeBox Type

 An arbitrary 3D Box.
 Described by 8 3D points.
 The points can be in arbitrary position in space.

       7               6
       +---------------+
      /|              /|
     / |             / |
 4  /  |          5 /  |
   +---------------+   |
   |   |           |   |
   |   +-----------|---+
   |  / 3          |  / 2
   | /             | /
   |/              |/
   +---------------+
   0               1

Instance members

Instance member Description

this.GetPt

Full Usage: this.GetPt

Parameters:
    i : int

Returns: Pnt
i : int
Returns: Pnt

this.Points

Full Usage: this.Points

Returns: Pnt[]

The 8 points that make up the box.

Returns: Pnt[]

this.Pt0

Full Usage: this.Pt0

Returns: Pnt
Returns: Pnt

this.Pt1

Full Usage: this.Pt1

Returns: Pnt
Returns: Pnt

this.Pt2

Full Usage: this.Pt2

Returns: Pnt
Returns: Pnt

this.Pt3

Full Usage: this.Pt3

Returns: Pnt
Returns: Pnt

this.Pt4

Full Usage: this.Pt4

Returns: Pnt
Returns: Pnt

this.Pt5

Full Usage: this.Pt5

Returns: Pnt
Returns: Pnt

this.Pt6

Full Usage: this.Pt6

Returns: Pnt
Returns: Pnt

this.Pt7

Full Usage: this.Pt7

Returns: Pnt
Returns: Pnt

this.Scale

Full Usage: this.Scale

Parameters:
    factor : float

Returns: FreeBox

Scales the 3D rectangle by a given factor on world origin (0,0,0)

factor : float
Returns: FreeBox

this.ScaleOn

Full Usage: this.ScaleOn

Parameters:
    cen : Pnt
    factor : float

Returns: FreeBox

Scales the 3D rectangle by a given factor on a given center point

cen : Pnt
factor : float
Returns: FreeBox

Static members

Static member Description

FreeBox.createFromBox box

Full Usage: FreeBox.createFromBox box

Parameters:
Returns: FreeBox
box : Box
Returns: FreeBox

FreeBox.createFromEightPoints pts

Full Usage: FreeBox.createFromEightPoints pts

Parameters:
Returns: FreeBox
pts : Pnt[]
Returns: FreeBox

FreeBox.createFromFour2DPoints zMin zMax pts

Full Usage: FreeBox.createFromFour2DPoints zMin zMax pts

Parameters:
    zMin : float
    zMax : float
    pts : Pt[]

Returns: FreeBox

Creates a FreeBox from four 2D points and a zMin and zMax value.

zMin : float
zMax : float
pts : Pt[]
Returns: FreeBox

FreeBox.createFromFour2DPointsArgs (a, b, c, d, zMin, zMax)

Full Usage: FreeBox.createFromFour2DPointsArgs (a, b, c, d, zMin, zMax)

Parameters:
    a : Pt
    b : Pt
    c : Pt
    d : Pt
    zMin : float
    zMax : float

Returns: FreeBox

Creates a FreeBox from four 2D points and a zMin and zMax value.

a : Pt
b : Pt
c : Pt
d : Pt
zMin : float
zMax : float
Returns: FreeBox

Type something to start searching.