本文整理汇总了C++中Bounds::brush_expansion_distance方法的典型用法代码示例。如果您正苦于以下问题:C++ Bounds::brush_expansion_distance方法的具体用法?C++ Bounds::brush_expansion_distance怎么用?C++ Bounds::brush_expansion_distance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bounds
的用法示例。
在下文中一共展示了Bounds::brush_expansion_distance方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: expand_brush_plane
/**
Moves a brush plane along its normal so that the "expanded" plane will touch the centre
of the bounds precisely when the original plane would touch the bounds itself.
@param brushPlane The original plane
@param bounds The bounds
@return The expanded plane
*/
BrushExpander::BrushPlane BrushExpander::expand_brush_plane(const BrushPlane& brushPlane, const Bounds& bounds)
{
const Vector3d& n = brushPlane.plane.normal();
const double d = brushPlane.plane.distance_value();
double expansionDistance = bounds.brush_expansion_distance(n);
return BrushPlane(Plane(n, d+expansionDistance), brushPlane.auxData);
}