Provide options without default values
OptionalfaceOpacity: numberOptionaledgeOpacity: numberOptionaledgeColour: stringOptionalfaceMaterial: anyOptionalfaceColour: stringOptionaledgeWidth: numberOptionaldrawEdges: booleanOptionaldrawFaces: booleanOptionaldrawVertices: booleanOptionalvertexColour: stringOptionalvertexSize: numberOptionalprecision: numberOptionaldrawEdgeIndexes: booleanOptionaledgeIndexHeight: numberOptionaledgeIndexColour: stringOptionaldrawFaceIndexes: booleanOptionalfaceIndexHeight: numberOptionalfaceIndexColour: stringOptionaldrawTwoSided: booleanOptionalbackFaceColour: stringOptionalbackFaceOpacity: numberOptionaledgeArrowSize: numberOptionaledgeArrowAngle: numberOptionalkeepMeshData: booleanOptionalallowQualityDecrease: booleanOptionalforceFaceDeflection: booleanOptionaldrawIsoCurves: booleanOptionalisoCurvesU: numberOptionalisoCurvesV: numberOptionalisoCurvesColour: stringOptionalsurfaceAnalysis: surfaceAnalysisEnumOptionaldraftDirection: Vector3OptionalanalysisMin: numberOptionalanalysisMax: numberOptionaledgeContrast: numberOptionalangularDeflection: numberOptionalrelativeDeflection: booleanOptionalfaceHow opaque the faces are, from 0 for invisible to 1 for opaque, multiplied into each look's
own opacity. A faceMaterial replaces it.
OptionaledgeHow opaque the edge and iso curve lines are, from 0 for invisible to 1 for opaque.
OptionaledgeThe color of the edges, as a hex string, unless edgeContrast derives it from the faces; the
edge colors of an appearance win over both.
OptionaledgeEdges take their faces' color moved toward black, or toward white on dark faces, by this
amount from 0 to 1, instead of edgeColour. Appearance edge colors still win.
OptionalfaceThe color of the faces, as a hex string. A faceMaterial or a surfaceAnalysis takes its
place, and the colors of an appearance win over it.
OptionalvertexThe color of the vertex markers, as a hex string; used with drawVertices.
OptionalfaceAn engine material for the faces, such as draw.createPBRMaterial makes; it replaces
faceColour and faceOpacity, and a surfaceAnalysis replaces it in turn.
OptionaledgeThe width of the edge and iso curve lines, a hundredth of it in model units.
OptionalvertexThe diameter of the vertex markers, in model units; used with drawVertices.
OptionaldrawWhen false, the edges are not drawn. Drawn edges or iso curves push the faces back slightly in depth so the lines show on top.
OptionaldrawWhen false, the faces and their backs are not drawn and no surfaceAnalysis is computed; the
face index labels still are.
OptionaldrawWhen true, each vertex of the shape is drawn as a small sphere in vertexColour,
vertexSize across.
OptionalprecisionThe largest distance, in model units, the triangles and edge lines may stray from the curved shape; smaller is finer and heavier.
OptionalangularThe largest angle, in radians, a curved face may turn between neighboring triangles; smaller follows curvature more closely with more triangles.
OptionalrelativeWhen true, precision is a fraction of each edge's and face's size instead of model units, so
small and large parts get triangles in proportion to their size.
OptionaldrawWhen true, each edge's index is written beside the middle of the edge, handy for picking edges to fillet.
OptionaledgeThe height of the edge index labels, in model units; they are drawn as lines in a plane parallel to XY.
OptionaledgeThe color of the edge index labels, as a hex string.
OptionaldrawWhen true, each face's index is written near the middle of the face, handy for picking faces.
OptionalfaceThe height of the face index labels, in model units; they are drawn as lines in a plane parallel to XY.
OptionalfaceThe color of the face index labels, as a hex string.
OptionaldrawWhen true, the back of each face is drawn in backFaceColour, which shows which way faces
point. A design build draws no backs.
OptionalbackThe color of the back of the faces, as a hex string; used with drawTwoSided.
OptionalbackHow opaque the back of the faces is, from 0 for invisible to 1 for opaque; used with
drawTwoSided.
OptionaledgeThe length of an arrow head at the end of each edge, showing its direction, in model units; 0 draws none.
OptionaledgeThe angle, in degrees, between each line of an arrow head and its edge; larger spreads the head wider.
OptionalkeepWhen true, the triangulation stays cached on each shape after drawing; when false it is cleared so memory does not grow across draws.
OptionalallowWhen true, a shape already meshed more finely may be remeshed at the coarser precision asked for.
OptionalforceWhen true, every face is remeshed at the requested precision even when a triangulation is cached.
OptionaldrawWhen true, each face's iso curves are drawn with the shape, as its edges are: at edgeWidth
and edgeOpacity, in isoCurvesColour.
OptionalisoHow many iso curves of constant u each face gets with drawIsoCurves, at values spread evenly
inside its u range and trimmed to the face.
OptionalisoHow many iso curves of constant v each face gets with drawIsoCurves, at values spread evenly
inside its v range and trimmed to the face.
OptionalisoThe color of the iso curves as a hex string.
OptionalsurfaceThe surface analysis coloring the faces instead of faceColour and faceMaterial, from blue at
analysisMin through green to red at analysisMax; vertices without a value keep faceColour.
OptionaldraftThe pull direction the draft angles, in degrees, are measured against; read only when
surfaceAnalysis is draftAngle.
OptionalanalysisThe analysis value drawn blue, and anything below it; left out, the lowest finite value found.
OptionalanalysisThe analysis value drawn red, and anything above it; left out, the highest finite value found.
Built by
draw.optionsOcctShapefor OCCT shapes: meshing, which faces, edges, vertices and labels show in what colors, iso curves, surface analysis and caching. Shapes with an appearance and design builds skip vertices, labels, arrows, iso curves, analysis andfaceMaterial.