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

PositionSpec for describing location and orientation.

Note: scaling now obsolete in this spec. Scaling is only supported on a per-Design basis, such as for STL import data.

Note: property names are case-sensitive, and are all lowercase.

example

{ origin: p(10,0,0) }

example

{ origin: p(2,3,4), xdir: v(1,1,0), ydir: v(0,1,0) }

Hierarchy

Index

Properties

origin

origin: Point

The position of the origin of the new location.

Optional scale

scale: number

Frame scaling is obsolete. This was only supported for STL, but scaling has been moved to the STL Design

obsolete

Optional type

type: PositionSpecType

Use type: 2 in Rules (optional for this spec type).

Optional xdir

xdir: Vector

The x-direction of the new orientation. This is exactly matched.

Optional xscale

xscale: number
obsolete

Optional ydir

ydir: Vector

The y-direction of the new orientation. This is only matched to the degree that defines the perpendicular to xdir. If ydir is supplied, then xdir must also be supplied. There is no zdir property.

Optional yscale

yscale: number
obsolete

Optional zscale

zscale: number
obsolete