vrdDecoreSettings

class vrdDecoreSettings

(Inherits vrdData)

Settings 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.

Functions

vrdDecoreSettings.getCorrectFaceNormals()

If enabled, flips polygon normals pointing away from the camera, if they are encountered during the analysis.

Returns:True, if correcting of face normals is enabled, otherwise false
Return type:bool
vrdDecoreSettings.getDecoreEnabled()

Returns if decoring is enabled.

Returns:True, if decoring is enabled
Return type:bool
vrdDecoreSettings.getDecoreMode()

Returns the action to be taken, when geometry is determined to be inside another and non-visible.

Returns:Decore mode
Return type:vrGeometryTypes.DecoreMode
vrdDecoreSettings.getQualitySteps()

Returns the number of images taken during the analysis. A higher value gives more accurate results.

Returns:Number of images taken during the analysis
Return type:integer
vrdDecoreSettings.getResolution()

Returnss the resolution of the images taken. A higher resolution gives more precise results.

Returns:Resolution of the images
Return type:integer
vrdDecoreSettings.getSubObjectMode()

Returns how sub objects are taken into account.

Returns:Mode for sub objects
Return type:vrGeometryTypes.DecoreSubObjectMode
vrdDecoreSettings.getTransparentObjectMode()

Returns how transparent objects should be handled.

Returns:Mode for transparent objects
Return type:vrGeometryTypes.DecoreTransparentObjectMode
vrdDecoreSettings.setCorrectFaceNormals(correctFaceNormals)

If enabled, flips polygon normals pointing away from the camera, if they are encountered during the analysis.

Parameters:correctFaceNormals (bool) – Enables correcting of face normals
vrdDecoreSettings.setDecoreEnabled(enabled)

Defines if decoring is enabled.

Parameters:enabled (bool) – Enables decoring
vrdDecoreSettings.setDecoreMode(decoreMode)

Defines the action to be taken, when geometry is determined to be inside another and non-visible.

Parameters:decoreMode (vrGeometryTypes.DecoreMode) – Decore mode
vrdDecoreSettings.setQualitySteps(steps)

Defines the number of images taken during the analysis. A higher value gives more accurate results.

Parameters:steps (integer) – Number of images taken during the analysis
vrdDecoreSettings.setResolution(resolution)

Defines the resolution of the images taken. A higher resolution gives more precise results.

Parameters:resolution (integer) – Resolution of the images
vrdDecoreSettings.setSubObjectMode(subObjects)

Defines how sub objects are taken into account.

Parameters:subObjects (vrGeometryTypes.DecoreSubObjectMode) – Mode for sub objects
vrdDecoreSettings.setTransparentObjectMode(ignoreTransparentObjects)

Defines how transparent objects should be handled.

Parameters:ignoreTransparentObjects (vrGeometryTypes.DecoreTransparentObjectMode) – Mode for transparent objects
vrdDecoreSettings.vrdDecoreSettings()

Default constructor.