Copyright © 2021 by K4.org
  (v.0.48.124)

[[include:profile_design.md]]

Index

Rules

area

area: Number

Returns surface area of the Profile.

Flags : Cached (Note this is uncached)

Expression : this.areaProps.area

areaProps

areaProps: Any

Returns { area: <number>, centroid: <Point> }

Flags : Cached (Note this is uncached)

Expression : R.THREE.areaProps(this.meshData)

boundary

boundary: Array

An array of CurveTo objects. It recommended that they be connected in a counter-clockwise (about the +Z axis) direction.

Flags : Cached, Parameter (Note this is uncached)

Expression : R.polygonToCurveTo(this.boundary2d)

boundary2d

boundary2d: Array

Internal Use Only.

Flags : Cached (Note this is uncached)

Expression : this.boundaryPolygon.map(p => p.xform(this.boundaryTransform))

boundaryPlane

boundaryPlane: Any

The Plane defined by the given points.

Flags : Cached (Note this is uncached)

Expression : R.makePlane(this.polygon.boundary[0], this.planeNormal)

boundaryPolygon

boundaryPolygon: Array

An array of co-planar Points. It recommended that they be connected in a counter-clockwise (about the +Z axis) direction.

Flags : Cached, Parameter (Note this is uncached)

Expression : []

boundaryTransform

boundaryTransform: Frame

A transform that will convert points to 'profile space'.

Flags : Cached (Note this is uncached)

Expression : this.boundaryPolygon.length > 1 ? this.boundaryPlane.getFlattener(this.boundaryPolygon[0]) : makeFrame()

centroid

centroid: Point

Returns 3D center of area of the Profile.

Flags : Cached (Note this is uncached)

Expression : new Point(this.areaProps.centroid)

holePolygons

holePolygons: Array

An array of arrays of co-planar Points. It recommended that they be connected in a clockwise (about the +Z axis) direction.

Flags : Cached, Parameter (Note this is uncached)

Expression : []

holes

holes: Array

An array of arrays of CurveTo objects. It recommended that they be connected in a clockwise (about the +Z axis) direction.

Flags : Cached, Parameter (Note this is uncached)

Expression : this.holes2d.map(h => R.polygonToCurveTo(h))

holes2d

holes2d: Array

Internal Use Only.

Flags : Cached (Note this is uncached)

Expression : this.holePolygons.map(h => h.map(p => p.xform(this.boundaryTransform)))

localizeVertices

localizeVertices: Array

Internal Use Only.

Flags : Method (Note this is uncached)

Expression : return function(verts) {const inv = this.nha.transform.getInverse(); return verts.map(v=>v.xform(inv)); };

planeNormal

planeNormal: Vector

The vector normal to the profile.

Flags : Cached (Note this is uncached)

Expression : this.polygon.normal

polygon

polygon: Any

Returns the polygon corresponding to this Profile.

Flags : Cached (Note this is uncached)

Expression : if (this.boundaryPolygon.length>0) return new Polygon(this.boundaryPolygon, this.holePolygons); return new Polygon(R.THREE.pointsFromCurveTo(this.boundary), this.holes.map(h => R.THREE.pointsFromCurveTo(h)));