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

# fz_objt_edit_project_on_plane

Description

Projects all the points of an object onto a plane.
The plane is defined by 3 points (origin, x axis point and y axis point). This function works on plain facetted objects only. Smooth and controlled objects will be dropped to plain facetted first.

Plugin Prototype

fzrt_error_td fz_objt_edit_project_on_plane(

fzrt_int | windex,
fz_objt_ptr | obj,
fz_xyz_td * | origin,
fz_xyz_td * | xaxis_pt,
fz_xyz_td * | yaxis_pt )

Parameters

windex [Input]

project window index

obj [Input, Result]

object (must be plain facetted)

origin [Input]

origin point of plane

xaxis_pt [Input]

x axis point of plane

yaxis_pt [Input]

y axis point of plane

Returns

Error codes
math error, if it cannot define a plane with the points

Availability

5.0.0.0

Example Files

util_objt_edit_genr.fsl

Function Set

fz_model_fset

Defined in

fz_objt_api.h