CustomGraphicsLines.cullMode Property

Parent Object: CustomGraphicsLines
Defined in namespace "adsk::fusion" and the header file is <Fusion/Graphics/CustomGraphicsLines.h>

Description

Gets and sets the culling model to use when rendering the entity. Culling is used when the entity contains a mesh or B-Rep faces and defines which sides of the mesh or face are rendered. This is primarily used for a watertight mesh or solid B-Rep so that the "inside" of the faces is not rendered since it's never visible to the user.

When a new graphics entity is created its default cull mode is CustomGraphicsCullBack which will optimize the rendering of "solid" meshes so the inside is not rendered.

Syntax

"customGraphicsLines_var" is a variable referencing a CustomGraphicsLines object.

# Get the value of the property.
propertyValue = customGraphicsLines_var.cullMode

# Set the value of the property.
customGraphicsLines_var.cullMode = propertyValue
"customGraphicsLines_var" is a variable referencing a CustomGraphicsLines object.
#include <Fusion/Graphics/CustomGraphicsLines.h>

// Get the value of the property.
CustomGraphicsCullModes propertyValue = customGraphicsLines_var->cullMode();

// Set the value of the property, where value_var is a CustomGraphicsCullModes.
bool returnValue = customGraphicsLines_var->cullMode(value_var);

Property Value

This is a read/write property whose value is a CustomGraphicsCullModes.

Version

Introduced in version September 2017