vrDecoreService

class vrDecoreService

(Inherits vrBaseService)

Service for object decoring/optimization.

Decoring removes redundant geometry that is inside other geometry, like screws and mountings inside a door covering. A virtual camera flies around the selected object, takes screen shots, and removes any non-visible geometry.

This feature only works with OpenGL.

This is a basic example:

settings = vrdDecoreSettings()
settings.setResolution(1024)
settings.setQualitySteps(8)
settings.setCorrectFaceNormals(False)
settings.setDecoreEnabled(True)
settings.setDecoreMode(vrGeometryTypes.DecoreMode.Remove)
settings.setSubObjectMode(vrGeometryTypes.DecoreSubObjectMode.Triangles)
settings.setTransparentObjectMode(vrGeometryTypes.DecoreTransparentObjectMode.Ignore)
treatAsCombinedObject = True
nodesToDecore = vrNodeService.findNodes('GeometryToDecore')
vrDecoreService.decore(nodesToDecore, treatAsCombinedObject, settings)

Functions

vrDecoreService.decore(nodes, treatAsCombinedObject, settings)

Decores the given objects with the given settings.

Parameters:
  • nodes (List[vrdNode]) – Nodes to decore
  • treatAsCombinedObject (bool) – Defines if the given nodes are treated as combined objects or separately
  • settings (vrdDecoreSettings) – Settings for decoring objects
vrDecoreService.getSettings()

Return the current user interface (GUI) settings.

Returns:Settings for decoring objects
Return type:vrdDecoreSettings
vrDecoreService.setSettings(settings)

Set setting to the user interface (GUI)

Parameters:settings (vrdDecoreSettings) – Settings for decoring objects

Signals

vrDecoreService.settingsChanged()

Signal is emitted when a parameter is changed.