HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_FitPlane.h File Reference
#include "GU_API.h"
#include <UT/UT_Vector3.h>
+ Include dependency graph for GU_FitPlane.h:

Go to the source code of this file.

Functions

bool GU_API GUfitPlane (const GU_Detail *gdp, const GA_PointGroup *ptgrp, UT_Vector3R &normal, fpreal &distance)
 

Function Documentation

bool GU_API GUfitPlane ( const GU_Detail gdp,
const GA_PointGroup ptgrp,
UT_Vector3R normal,
fpreal distance 
)

Fits a plane to the given set of points. Returns true if a plane could be fit successfully.