formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Analysis

# fz_objt_get_rndr_mesh2

Description

Varient of that includes edge marking for triangles and quads.
trng_edges is bit packed edge flags for triangles (10 triangles per fzrt_int). array must be pre allocated. Use FZ_OBJT_RNDR_MESH_TRNG_EDGE_SIZE to calculate size Bit ON = interior edge, OFF - exterior edge
quad_edges is bit packed edge flags for quuads (8 quads per fzrt_int). array must be pre allocated. Use FZ_OBJT_RNDR_MESH_QUAD_EDGE_SIZE to calculate size Bit ON = interior edge, OFF - exterior edge

Plugin Prototype

fzrt_error_td fz_objt_get_rndr_mesh2(

fzrt_int | windex,
fz_objt_ptr | obj,
fzrt_int | flags,
fzrt_int * | bytes_per_ref,
fzrt_unsigned_int * | ntrng,
fzrt_ptr | trng,
fzrt_int * | trng_edges,
fzrt_unsigned_int * | nquad,
fzrt_ptr | quad,
fzrt_int * | quad_edges,
fzrt_int * | nfact_color,
fz_rmtl_ptr * | fact_color,
fzrt_unsigned_int * | ncord,
fz_xyz_float_td * | cord,
fz_xyz_float_td * | cord_norm,
fz_xy_float_td * | cord_txuv,
fz_rgba_float_td * | cord_colr,
char * | has_tmat,
fz_mat4x4_td * | tmat )

Parameters

windex [Input]

project window index

obj [Input]

object

flags [Input]

do_quads (1) else triangles (0)

bytes_per_ref [Result, Optional]

number of bytes used in the triangle and quads data

ntrng [Result, Optional]

number of triangles in mesh

trng [Result, Optional]

packed triangle data

trng_edges [Result, Optional]

bit packed edge flags (10 triangles per fzrt_int)

nquad [Result, Optional]

number of quads in mesh

quad [Result, Optional]

packed quad data

quad_edges [Result, Optional]

bit packed edge flags (8 quads per fzrt_int)

nfact_color [Result, Optional]

number of facet color (multi color objects only)

fact_color [Result, Optional]

packed quad data

ncord [Result, Optional]

number of coordinates (points) in mesh

cord [Result, Optional]

coordinates

cord_norm [Result, Optional]

coordinates

cord_txuv [Result, Optional]

coordinates

cord_colr [Result, Optional]

coordinates

has_tmat [Result, Optional]

mesh has transform matrix

tmat [Result, Optional]

mesh has transform matrix

Returns

Error codes

Availability

8.5.4.0

See Also

,

Function Set

fz_model_fset

Defined in

fz_objt_api.h