CustomGraphicsEntity.cullMode Property

Parent Object: CustomGraphicsEntity
Defined in namespace "adsk::fusion" and the header file is <Fusion/Graphics/CustomGraphicsEntity.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

"customGraphicsEntity_var" is a variable referencing a CustomGraphicsEntity object.

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

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

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

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

Property Value

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

Version

Introduced in version September 2017