# fz_proj_sshd_parm_enum

Description

Parameter identifiers for the smooth shading. Used for the "which" argument of fz_proj_rndr_opts_sshd_get and .

enum fz_proj_sshd_parm_enum {

FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_ON_OBSOLETE,

FZ_PROJ_RNDR_OPTS_SSHD_TYPE_OBSOLETE,

FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_ALL_OBSOLETE,

FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_FACES_BY_ANGLE_OBSOLETE,

FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_FACES_BY_NSIDES_OBSOLETE,

FZ_PROJ_RNDR_OPTS_SSHD_ANGLE_OBSOLETE,

FZ_PROJ_RNDR_OPTS_SSHD_NSIDES_MIN_OBSOLETE,

FZ_PROJ_RNDR_OPTS_SSHD_NSIDES_MAX_OBSOLETE,

FZ_PROJ_RNDR_OPTS_SSHD_FACT_BY_EDGE,

FZ_PROJ_RNDR_OPTS_SSHD_FACT_EDGE_ANGLE,

FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_BY_RNDR,

FZ_PROJ_RNDR_OPTS_SSHD_ALLOW_OVERRIDE };

Members

FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_ON_OBSOLETE

smooth shading is on.
Obsolete: 6.5.0.0. See new, simplified options below.

Type: fzrt_boolean

Default Value: TRUE

FZ_PROJ_RNDR_OPTS_SSHD_TYPE_OBSOLETE

render smooth object smooth
Obsolete: 6.5.0.0. See new, simplified options below.

Type: fz_sshd_type_enum

Default Value: FZ_SSHD_TYPE_OBJECTS_WITHOUT

FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_ALL_OBSOLETE

smooth all
Obsolete: 6.5.0.0. See new, simplified options below.

Type: fzrt_boolean

Default Value: FALSE

FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_FACES_BY_ANGLE_OBSOLETE

if smooth all if off, smooth by face angle
Obsolete: 6.5.0.0. See new, simplified options below.

Type: fzrt_boolean

Default Value: TRUE

FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_FACES_BY_NSIDES_OBSOLETE

if smooth all if off, smooth faces with m to n sides
Obsolete: 6.5.0.0. See new, simplified options below.

Type: fzrt_boolean

Default Value: FALSE

FZ_PROJ_RNDR_OPTS_SSHD_ANGLE_OBSOLETE

smoothing angle if FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_FACES_BY_ANGLE is used
Obsolete: 6.5.0.0. See new, simplified options below.

Type: double

Default Value: 140 degrees (as radians)

Range: 0.0 < value < PI

FZ_PROJ_RNDR_OPTS_SSHD_NSIDES_MIN_OBSOLETE

minimum number of sides per face, if FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_FACES_BY_NSIDES is used
Obsolete: 6.5.0.0. See new, simplified options below.

Type: fzrt_int

Default Value: 4

Range: value >= 3

FZ_PROJ_RNDR_OPTS_SSHD_NSIDES_MAX_OBSOLETE

maximum number of sides per face, if FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_FACES_BY_NSIDES is used
Obsolete: 6.5.0.0. See new, simplified options below.

Type: fzrt_int

Default Value: 4

Range: value >= 3

FZ_PROJ_RNDR_OPTS_SSHD_FACT_BY_EDGE

If TRUE, smooth shades facetted goemetry edges with angles greater than FZ_PROJ_RNDR_OPTS_SSHD_FACT_EDGE_ANGLE. If FALSE, does not smooth shade facetted geometry.

Type: fzrt_boolean

Default Value: TRUE

Availability: 6.5.0.0

FZ_PROJ_RNDR_OPTS_SSHD_FACT_EDGE_ANGLE

If FZ_PROJ_RNDR_OPTS_SSHD_FACT_BY_EDGE is TRUE, facetted geometry edges are smooth shaded for angles greater than this angle (in radians).

Type: float

Default Value: 2.44346 (140 degrees)

Availability: 6.5.0.0

FZ_PROJ_RNDR_OPTS_SSHD_SMOOTH_BY_RNDR

If TRUE, smooth shades smooth goemetry according as the renderer specificies. See FZ_RNDR_RZNE_PARM_GEOM_SURF, FZ_RNDR_RZNE_PARM_GEOM_SILH. If FALSE, smooth shades the smooth geometry according to the FZ_PROJ_RNDR_OPTS_SSHD_FACT_BY_EDGE option.

Type: fzrt_boolean

Default Value: TRUE

Availability: 6.5.0.0

FZ_PROJ_RNDR_OPTS_SSHD_ALLOW_OVERRIDE

Whether or not object and layer override settings have an effect on smooth shading.

Type: fzrt_boolean

Default Value: TRUE

Availability: 6.5.0.0

Availability

5.0.0.0

Example Files

util_proj_opts.fsl

See Also

fz_proj_rndr_opts_sshd_get,,

Defined in

fz_proj_api.h