Hide menu
ModelData_Plane

Table of Contents

Defines a plane.

A plane is defined by an axis placement.

A plane is parameterized as follows: S(u,v) = P + u * Dx + v * Dy, where

  • P is an origin point,
  • Dx and Dy are directions (unit vectors) of X and Y axes respectively,
  • u, v belongs to (-infinity, +infinity).
Extends

Constructor

new ModelData_Plane(thePlacement)

Creates a plane located in 3D space with an axis placement three axis.

Param Type Description
thePlacement ModelData_Axis3Placement

Methods

fromEquationCoefficients(a, b, c, d)ModelData_Planestatic

Creates a plane from coefficients of cartesian equation: a * x + b * y + c * z + d = 0.0

Parameters:

Param Type Description
a number
b number
c number
d number

fromPointAndNormal(thePoint, theNormal)ModelData_Planestatic

Creates a plane from origin point and the normal direction.

Parameters:

Param Type Description
thePoint ModelData_Point The plane point.
theNormal ModelData_Direction The plane normal.

fromThreePoints(thePoint1, thePoint2, thePoint3)ModelData_Planestatic

Creates a plane from tree points.

Parameters:

Param Type Description
thePoint1 ModelData_Point
thePoint2 ModelData_Point
thePoint3 ModelData_Point

clone()ModelData_Plane

Creates copy of the current object.


copy(thePlane)ModelData_Plane

Copies plane params from another plane.

Parameters:

Param Type Description
thePlane ModelData_Plane The plane to copy from.

value(theParameterU, theParameterV, theTarget)

Calculates value at specific parameters values.

Parameters:

Param Type Description
theParameterU number
theParameterV number
theTarget ModelData_Point