formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Editing Operations

# fz_objt_edit_triangulate

Description

Creates triangular faces on an object. Optionally, only selected faces can be triangulated. This is specified through the face_list array, which contains the indices of the faces to be triangulated. If face_list is NULL, the whole object is triangulated.

Plugin Prototype

fzrt_error_td fz_objt_edit_triangulate(

fzrt_int | windex,
fz_objt_ptr | obj,
fz_objt_tria_type_enum | triang_type,
fzrt_boolean | non_planar_only,
fzrt_boolean | strict_planarity,
fzrt_int * | face_list,
fzrt_int | n_face_list )

Parameters

windex [Input]

project window index

obj [Input, Result]

object

triang_type [Input]

type of triangulation

non_planar_only [Input]

if TRUE, only the non planar faces are triangulated, otherwise all faces are triangulated

strict_planarity [Input]

if TRUE, the triangulation process is more sensitive to smaller disturbances in the planarity of a face

face_list [Input, Optional]

list of faces to triangulate

n_face_list [Input, Optional]

number of faces in list

Returns

Error codes

Availability

5.0.0.0

Example Files

util_objt_meshes.fsl

Function Set

fz_model_fset

Defined in

fz_objt_api.h