Base: [skip ci] support of spheres in InventorBuilder
This commit is contained in:
@@ -856,6 +856,13 @@ void InventorBuilder::addCylinder(float radius, float height)
|
||||
<< Base::blanks(indent) << "}\n";
|
||||
}
|
||||
|
||||
void InventorBuilder::addSphere(float radius)
|
||||
{
|
||||
result << Base::blanks(indent) << "Sphere {\n"
|
||||
<< Base::blanks(indent) << " radius " << radius << "\n"
|
||||
<< Base::blanks(indent) << "}\n";
|
||||
}
|
||||
|
||||
void InventorBuilder::addBoundingBox(const Vector3f& pt1, const Vector3f& pt2, short lineWidth,
|
||||
float color_r,float color_g,float color_b)
|
||||
{
|
||||
|
||||
@@ -301,6 +301,7 @@ public:
|
||||
int numUControlPoints, int numVControlPoints,
|
||||
const std::vector<float>& uKnots, const std::vector<float>& vKnots);
|
||||
void addCylinder(float radius, float height);
|
||||
void addSphere(float radius);
|
||||
//@}
|
||||
|
||||
/** @name Bounding Box handling */
|
||||
|
||||
Reference in New Issue
Block a user