SvgConfig

class Communicator.SvgConfig()

Allows customization of an exported SVG.


Properties

Communicator.SvgConfig.linesClipProximityToPlane

For line clipping, this factor determines how close a line can get to a triangle without getting clipped. Larger values will help small sections that shouldn’t get clipped, but larger values may also allow hidden line sections to poke through. Z values are normalized to -32767 to 32767, so this value is relative to that scale. (default: 5.5)

Communicator.SvgConfig.linesClipZNudgeFactor

For line clipping, this value will be used to adjust line segment endpoints, bringing closer to the camera for positive values. This is helpful for z-fighting causing small sections of lines to be unintentionally clipped. Z values are normalized to -32767 to 32767, so this value is relative to that scale. (default: 5.5)

Communicator.SvgConfig.linesCssColor

CSS compliant color string used to draw lines (default: “#000000”)

Communicator.SvgConfig.linesDrawModelLinesEnabled

Determines if the model lines will be included in the SVG output (default: true)

Communicator.SvgConfig.linesStrokeWidth

Determines the output SVG line width for all lines in the model. This is relative to the SVG viewBox settings of -32767 to +32767 in both X and Y directions. (default: 20.0)

Communicator.SvgConfig.logDiagnostics

Enables diagnostics logging. If running in-browser, this will go to the developer console (default: false)

Communicator.SvgConfig.logProgress

Enables progress logging. If running in-browser, this will go to the developer console (default: false)

Communicator.SvgConfig.polygonsForceDrawCssColor

If set to a non-empty CSS string value, forces all polygons to be drawn as this color Example, to force all polygons to be white, use PolygonsForceDrawColor=“#ffffff” (default: “”)

Communicator.SvgConfig.silhouettesEnabled

Determines if silhouette lines will be drawn for the model (default: true)

Communicator.SvgConfig.svgBackgroundCssColor

If non-empty, an SVG element will be at the root with the given background color. (default: “”)

Communicator.SvgConfig.svgXmlPrologEnabled

If true, the standard XML prolog will be included in the output SVG (default: true)