Base: [skip ci] support of spheres in InventorBuilder

This commit is contained in:
wmayer
2020-04-08 18:01:13 +02:00
parent 6edcc8e95a
commit a5fbf61dea
2 changed files with 8 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -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 */