Please enable JavaScript to view this site.

Knowledge Bridge Documentation

Help version: 3.3.8

Description

DimPlaneMixin is a mixin containing rules that can be used by other designs—but see Note, below.

We do not use it alone; instead, it is used to add the rules to other designs. NOTE: presently there are no UI designs that use this mixin (see below).

Although this mixin is not mixed into LinearDimension, LinearDimension has these same rules and formulas.

Parameter Rules

 

dimPlane3DFromPoint:
Formula:if (this.viewport === null) {
   return this.fromPoint
} else {
   return this.projectPoint(this.fromPoint, this.dimPlaneModelPoint, this.dimPlaneModelNormal)
};

 

dimPlane3DToPoint:
Formula:if (this.viewport === null) {
   return this.toPoint
} else {
   return this.projectPoint(this.toPoint, this.dimPlaneModelPoint, this.dimPlaneModelNormal)
};

 

dimPlaneModelMeasurement-

Direction:
Formula:return this.dimPlane3DToPoint.sub(this.dimPlane3DFromPoint).unitize();

 

dimPlaneModelNormal:
Formula:const cam = this.viewport.camera;
return cam.eye.sub(cam.target).unitize();

 

dimPlaneModelPoint:
Formula:this.viewport.camera.target;

 

projectedFromPoint:
Formula:if (this.viewport === null) {
   return this.dimPlane3DFromPoint;
} else {
   return this.viewport.worldToPaper(this.dimPlane3DFromPoint);
};

 

projectedToPoint:
Formula:if (this.viewport === null) {
   return this.dimPlane3DToPoint;
} else {
   return this.viewport.worldToPaper(this.dimPlane3DToPoint);
};

 

 

 

 

Mixins

None

 

RULE NAME

TYPE

DEFAULTS

CATEGORY

FLAGS

dimPlane3DFromPoint

point

Formula

Derived

Cached

dimPlane3DToPoint

point

Formula

Derived

Cached

dimPlaneModelMeasurement-

Direction

vector

Formula

Derived

Cached

dimPlaneModelNormal

vector

Formula

Derived

Cached

dimPlaneModelPoint

point

this.viewport.camera.target

Derived

Cached

projectedFromPoint

point

Formula

Derived

Cached

projectedToPoint

point

Formula

Derived

Cached

 

 

kBridgeExampleIcon

 

 

 

 

UI Designs that use the DimPlaneMixin:

Although this mixin is not mixed into LinearDimension, LinearDimension has these same rules and formulas.

Knowledge Bridge from Engingeering Intent is a full-featured engineering and sales automation environment