14 #ifndef __GU_Relax_h__
15 #define __GU_Relax_h__
29 #define GU_USE_POINT_BVH 1
32 template<u
int NAXES>
class PointBVHT;
84 const fpreal stepweight=1.0,
85 const bool scaleattrib=
false);
121 const fpreal stepweight=1.0,
122 const bool scaleattrib=
false);
153 const fpreal stepweight=1.0);
188 const bool wrapunitspace =
true,
189 const fpreal stepweight=1.0);
216 fpreal radiusvalue = FLT_MAX,
217 const bool scaleattrib=
false);
GA_ROHandleT< UT_Vector3F > GA_ROHandleV3
A range of elements in an index-map.
GA_RWHandleT< UT_Vector3F > GA_RWHandleV3
GU_API void guProjectPointsOntoSurface(GA_Detail *gdp, const GA_Range &projectrange, const GU_RayIntersect *surfaceintersect, const GA_RWHandleV3 &normalattrib=GA_RWHandleV3(), const GA_ROHandleV3 &surfacenormalattrib=GA_ROHandleV3(), const GA_RWHandleT< int64 > &primnumattrib=GA_RWHandleT< int64 >(), const GA_RWHandleV3 &primuvwattrib=GA_RWHandleV3(), const GA_ROHandleF &radiusattrib=GA_ROHandleF(), fpreal radiusvalue=FLT_MAX, const bool scaleattrib=false)
GA_ROHandleT< fpreal32 > GA_ROHandleF
GU_API bool guRelaxPoints1D(UT_Array< UT_Vector3 > &newpositions, const GA_Detail *gdp, const GA_Range &relaxrange, const GA_ROHandleF &radiusattrib, fpreal radiusvalue, const GA_RWHandleV3 &uvwattrib, const GEO_Face &face, const fpreal stepweight=1.0)
GU_API bool guRelaxPoints2D(UT_Array< UT_Vector2 > &newpositions, const UT_Array< UT_Vector2 > &oldpositions, UT_KDTree &pttree, const UT_Array< float > &radii, const fpreal radiusvalue, const bool wrapunitspace=true, const fpreal stepweight=1.0)
GU_API bool guRelaxPoints(UT_Array< UT_Vector3 > &newpositions, const GA_Detail *gdp, const GA_Range &relaxrange, GU::PointBVH &pttree, const GA_ROHandleV3 &normalattrib, const UT_Vector3 &normalvalue, const GA_ROHandleF &radiusattrib, const fpreal radiusvalue, const GA_ROHandleF &maxstepattrib=GA_ROHandleF(), const fpreal stepweight=1.0, const bool scaleattrib=false)
Container class for all geometry.
GU_API bool guRelaxPoints3D(UT_Array< UT_Vector3 > &newpositions, const GA_Detail *gdp, const GA_Range &relaxrange, GU::PointBVH &pttree, const GA_ROHandleF &radiusattrib, const fpreal radiusvalue, const GA_ROHandleF &maxstepattrib=GA_ROHandleF(), const fpreal stepweight=1.0, const bool scaleattrib=false)
const GEO::PointBVHT< 3 > PointBVH