SilhouetteDecorator

Description

sealed class Tinman.Engine.Models.SilhouetteDecorator

Derived from

ModelDecorator abstract

A IModelDecorator that computes the silhouette contour of the model geometry.

See also

Silhouette

Public / Constructors

Silhouette​Decorator


public constructor SilhouetteDecorator → ()

Creates a new instance of SilhouetteDecorator.

Public / Attributes

Hierarchy


public attribute Hierarchy → (get,set)

value : bool

true to include descendant model geometry,
false to process only the model itself

Shall the geometry of the model descendants be included in the silhouette computation?

Defaults to false.

Layer


public attribute Layer → (get,set)

value : int32

The surface layer offset.

The surface layer offset.

See also

IModelPart.Layer

Material


public attribute Material → (get,set)

value : IMaterial

The material or null to use the default material.

Specifies the material to use for the decoration model parts.

Origin


public attribute Origin → (get,set)

value : Vec4D

The silhouette origin:
Vec4D.Zero : no origin, output silhouette edges as wireframe
Vec4D.W != 0 : origin is a point at (Vec4D.X / Vec4D.W, Vec4D.Y / Vec4D.W, Vec4D.Z / Vec4D.W)
otherwise : origin is the direction vector (Vec4D.X, Vec4D.Y, Vec4D.Z)

Specifies the origin to use for computing the silhouette decoration.

Defaults to Vec4D.Zero