Class: CompoundBlueprint
Defined in: blueprints/CompoundBlueprint.ts:13
Implements
Constructors
Constructor
new CompoundBlueprint(blueprints): CompoundBlueprint;
Defined in: blueprints/CompoundBlueprint.ts:17
Parameters
blueprints
Returns
CompoundBlueprint
Properties
blueprints
blueprints: Blueprint[];
Defined in: blueprints/CompoundBlueprint.ts:14
Accessors
boundingBox
Get Signature
get boundingBox(): BoundingBox2d;
Defined in: blueprints/CompoundBlueprint.ts:26
Returns
Implementation of
repr
Get Signature
get repr(): string;
Defined in: blueprints/CompoundBlueprint.ts:35
Returns
string
Methods
clone()
clone(): CompoundBlueprint;
Defined in: blueprints/CompoundBlueprint.ts:22
Returns
CompoundBlueprint
Implementation of
mirror()
mirror(
   centerOrDirection, 
   origin?, 
   mode?): CompoundBlueprint;
Defined in: blueprints/CompoundBlueprint.ts:76
Returns the mirror image of this drawing made with a single point (in center mode, the default, or a plane, (plane mode, with both direction and origin of the plane).
Parameters
centerOrDirection
origin?
mode?
"center" | "plane"
Returns
CompoundBlueprint
Implementation of
rotate()
rotate(angle, center?): CompoundBlueprint;
Defined in: blueprints/CompoundBlueprint.ts:55
Parameters
angle
number
center?
Returns
CompoundBlueprint
Implementation of
scale()
scale(scaleFactor, center?): CompoundBlueprint;
Defined in: blueprints/CompoundBlueprint.ts:61
Parameters
scaleFactor
number
center?
Returns
CompoundBlueprint
sketchOnFace()
sketchOnFace(face, scaleMode?): CompoundSketch;
Defined in: blueprints/CompoundBlueprint.ts:97
Returns the sketched version of the drawing, on a face.
The scale mode corresponds to the way the coordinates of the drawing are interpreted match with the face:
- originaluses global coordinates (1mm in the drawing is 1mm on the face). This is the default, but currently supported only for planar and circular faces
- boundsnormalises the UV parameters on the face to [0,1] intervals.
- nativeuses the default UV parameters of opencascade
Parameters
face
scaleMode?
Returns
Implementation of
sketchOnPlane()
sketchOnPlane(plane?, origin?): CompoundSketch;
Defined in: blueprints/CompoundBlueprint.ts:86
Returns the sketched version of the drawing, on a plane
Parameters
plane?
origin?
number | Point
Returns
Implementation of
DrawingInterface.sketchOnPlane
stretch()
stretch(
   ratio, 
   direction, 
   origin): CompoundBlueprint;
Defined in: blueprints/CompoundBlueprint.ts:45
Parameters
ratio
number
direction
origin
Returns
CompoundBlueprint
Implementation of
toSVG()
toSVG(margin): string;
Defined in: blueprints/CompoundBlueprint.ts:117
Formats the drawing as an SVG image
Parameters
margin
number = 1
Returns
string
Implementation of
toSVGGroup()
toSVGGroup(): string;
Defined in: blueprints/CompoundBlueprint.ts:113
Returns
string
toSVGPaths()
toSVGPaths(): string[];
Defined in: blueprints/CompoundBlueprint.ts:109
Formats the drawing as a list of SVG paths
Returns
string[]
Implementation of
toSVGViewBox()
toSVGViewBox(margin): string;
Defined in: blueprints/CompoundBlueprint.ts:105
Returns the SVG viewbox that corresponds to this drawing
Parameters
margin
number = 1
Returns
string
Implementation of
translate()
Call Signature
translate(xDist, yDist): CompoundBlueprint;
Defined in: blueprints/CompoundBlueprint.ts:68
Parameters
xDist
number
yDist
number
Returns
CompoundBlueprint
Implementation of
Call Signature
translate(translationVector): CompoundBlueprint;
Defined in: blueprints/CompoundBlueprint.ts:69
Parameters
translationVector
Returns
CompoundBlueprint