Global

Methods

exportSTL(data, binaryopt, configopt) → {string}

Parameters:
Name Type Attributes Description
data Array.<Geometry> graphic objects to be drawn
binary boolean <optional>
whether to export as binary or text STL format
config renderConfig <optional>
a rendering configuration
Source:
Returns:
Type
string

Type Definitions

baseConfig

Type:
  • Object
Properties:
Name Type Attributes Description
type string
name string
label string <optional>
default number <optional>
Source:

buttonsConfig

Type:
Properties:
Name Type Attributes Description
values Array.<number> <optional>
Source:

colorsOption

Type:
  • Object
Properties:
Name Type Description
r number
g number
b number
Source:

geometryOptions

Type:
  • Object
Properties:
Name Type Attributes Description
group string <optional>
material string <optional>
color string <optional>
colormap string <optional>
colors Array.<colorsOption> <optional>
opacity number <optional>
renderOrder number <optional>
complexFunction boolean <optional>
singleSide boolean <optional>
rotation rotationOption <optional>
translation translationOption <optional>
fontSize number <optional>
size number <optional>
linewidth number <optional>
maxFaceSlope number <optional>
fill boolean <optional>
useLineSegments boolean <optional>
openEnded boolean <optional>
center Array.<number> <optional>
axis Array.<number> <optional>
endcaps boolean <optional>
radius number <optional>
steps number <optional>
Source:

geometrySubOptions

Type:
  • Object
Properties:
Name Type Attributes Description
rotation rotationOption <optional>
translation translationOption <optional>
Source:

inputConfig

Type:
Source:

inputConfigSet

Type:
Source:

renderConfig

Type:
  • Object
Properties:
Name Type Attributes Description
axes boolean <optional>
animate boolean <optional>
animateOnInteraction boolean <optional>
equalAspect boolean <optional>
frame boolean <optional>
cameraNear number <optional>
cameraFar number <optional>
decimals number <optional>
suspendTimeout number <optional>
xMin number <optional>
yMin number <optional>
zMin number <optional>
xMax number <optional>
yMax number <optional>
zMax number <optional>
aspectRatio Array.<number> <optional>
viewpoint Array.<number> | string <optional>
viewDistance number | string <optional>
clippingPlane Array.<number> | Array.<Array.<number>> <optional>
ambientLight string <optional>
clearColor string <optional>
axesLabels Array.<string> <optional>
Source:

rotationOption

Type:
  • Object
Properties:
Name Type Attributes Description
axis Array.<number> <optional>
angle number <optional>
origin Array.<number> <optional>
Source:

sliderConfig

Type:
Properties:
Name Type Attributes Description
min number <optional>
max number <optional>
Source:

translationOption

Type:
  • Object
Properties:
Name Type Attributes Description
path string | function <optional>
step number <optional>
Source: