RescaleNormalAttrib

from acron.core import RescaleNormalAttrib
class RescaleNormalAttrib

Bases:

Bases: RenderAttrib

Specifies how polygons are to be drawn.

Inheritance diagram

digraph inheritance44e3dbad64 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "RenderAttrib" [URL="acron.core.RenderAttrib.html#acron.core.RenderAttrib",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "RenderAttrib" [arrowsize=0.75,style=""]; "RescaleNormalAttrib" [URL="acron.core.RescaleNormalAttrib.html#acron.core.RescaleNormalAttrib",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "RenderAttrib" -> "RescaleNormalAttrib" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }
enum Mode
enumerator M_none = 0

No adjustments are made to normals.

enumerator M_rescale = 1

Normals are counterscaled by the transform’s uniform scale, if supported by the graphics API.

enumerator M_normalize = 2

Normals are scaled to unit length; potentially expensive.

enumerator M_auto = 3

Normals are counterscaled in the presence of a uniform scale transform, or normalized in the presence of a non-uniform scale transform.

property class_slot → int
static get_class_slot()
static get_class_type()
get_mode()

Returns the render mode.

static make()

Constructs a new RescaleNormalAttrib object that specifies whether to rescale normals to compensate for transform scales or incorrectly defined normals.

static make_default()

Constructs a RescaleNormalAttrib object that’s suitable for putting at the top of a scene graph. This will contain whatever attrib was suggested by the user’s rescale-normals Config variable.

property mode → Mode

Returns the render mode.