vrdPolygonChunk

class vrdPolygonChunk

(Inherits vrdMaterialChunk)

This class represents a polygon chunk.

class CullFace
None_
Front
Back
FrontAndBack
class FrontFace
Clockwise
Counterclockwise
class FillMode
Point
Line
Filled

Functions

vrdPolygonChunk.getBackMode()

Returns if polygon back sides are rendered filled (default), outlined or as points.

Returns:The back mode.
Return type:vrdPolygonChunk.FillMode
vrdPolygonChunk.getCullFace()

Returns which side of the polygon is invisible. Set to None to not cull anything.

Returns:The cull face.
Return type:vrdPolygonChunk.CullFace
vrdPolygonChunk.getFrontFace()

Returns which side of the polygon is considered the front side, defaults to Counterclockwise.

Returns:The front face.
Return type:vrdPolygonChunk.FrontFace
vrdPolygonChunk.getFrontMode()
Returns:The fill mode for polygon front sides.
Return type:vrdPolygonChunk.FillMode
vrdPolygonChunk.getOffsetBias()

Defines the offset bias.

Returns:The offset bias.
Return type:float
vrdPolygonChunk.getOffsetFactor()

Returns the offset factor.

Returns:The offset factor.
Return type:float
vrdPolygonChunk.getOffsetFill()

Returns if offsetting for polygons is enabled.

Returns:True if offsetting is enabled, False otherwise.
Return type:bool
vrdPolygonChunk.getOffsetLine()

Returns if offsetting for lines is enabled.

Returns:True if offsetting is enabled, False otherwise.
Return type:bool
vrdPolygonChunk.getOffsetPoint()

Returns if offsetting for points is enabled.

Returns:True if offsetting is enabled, False otherwise.
Return type:bool
vrdPolygonChunk.getSmoothing()

Returns if polygon antialiasing is used.

Returns:True if smoothing is used, False otherwise.
Return type:bool
vrdPolygonChunk.setBackMode(fillMode)

Defines if polygon back sides are rendered filled (default), outlined or as points.

Parameters:fillMode (vrdPolygonChunk.FillMode) – The fill mode
vrdPolygonChunk.setCullFace(cullFace)

Defines which side of the polygon is invisible. Set to None to not cull anything.

Parameters:cullFace (vrdPolygonChunk.CullFace) – The cull face
vrdPolygonChunk.setFrontFace(frontFace)

Defines which side of the polygon is considered the front side, defaults to Counterclockwise.

Parameters:frontFace (vrdPolygonChunk.FrontFace) – The front face
vrdPolygonChunk.setFrontMode(fillMode)

Defines if polygon front sides are rendered filled (default), outlined or as points.

Parameters:fillMode (vrdPolygonChunk.FillMode) – The fill mode
vrdPolygonChunk.setOffsetBias(offsetBias)

Returns the offset bias.

Parameters:offsetBias (float) – The offset bias
vrdPolygonChunk.setOffsetFactor(offsetFactor)

Defines the offset factor.

Parameters:offsetFactor (float) – The offset factor
vrdPolygonChunk.setOffsetFill(offsetFill)

Enables offsetting for polygons.

Parameters:offsetFill (bool) – True to turn on offsetting, False to turn it off.
vrdPolygonChunk.setOffsetLine(offsetLine)

Enables offsetting for lines.

Parameters:offsetLine (bool) – True to enable offsetting, False otherwise.
vrdPolygonChunk.setOffsetPoint(offsetPoint)

Enables offsetting for points.

Parameters:offsetPoint (bool) – True to enable offsetting, False to disable.
vrdPolygonChunk.setSmoothing(smoothing)

Defines if polygon antialiasing is used.

Parameters:smoothing (bool) – True to turn on smoothing, False to turn off smoothing.