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

# fz_voronoi_diagram

Description

Creates Voronoi diagram from set of source points.

Plugin Prototype

fzrt_error_td fz_voronoi_diagram(

fzrt_int | windex,
fz_xyz_td * | source_points,
fzrt_int | num_source_points,
char | make_surface,
fz_objt_ptr | boundary_object,
fzrt_int | boundary_findx,
double | hull_margin,
double | hull_miter_angle,
double | hull_min_angle,
double | lattice_radius,
fzrt_boolean | imprint,
fzrt_boolean | project,
fz_objt_ptr ** | voronoi_obj_list,
fzrt_int * | num_voronoi_objs )

Parameters

windex [Input]

Project window index

source_points [Input]

Array of source points

num_source_points [Input]

Number of source points

make_surface [Input]

Selects output type

boundary_object [Input]

Object to be used to define surface and boundary

boundary_findx [Input]

Index of object face to be used to define surface and boundary

hull_margin [Input]

Distance to extend convex hull when no boundary specified

hull_miter_angle [Input]

Corners of default boundary with less than specified angle will be mitered when margin allows

hull_min_angle [Input]

Angle used to identify and remove nearly collinear segments in default boundary

lattice_radius [Input]

Radius of lattice pipes

imprint [Input]

TRUE indicates Voronoi diagram should be imprinted on boundary surface or face

project [Input]

Not yet implemented

voronoi_obj_list [Result]

Array of output objects, segments, surface or lattice

num_voronoi_objs [Result]

Number of output objects

Returns

Error codes

Availability

8.5.0.1

Function Set

fz_model_fset

Defined in

fz_objt_gend_api.h