+ extend Inventor builder, project curve on mesh

This commit is contained in:
wmayer
2015-04-22 17:15:49 +02:00
parent 197aa0c85c
commit 02b84611b2
4 changed files with 223 additions and 13 deletions

View File

@@ -440,6 +440,18 @@ void InventorBuilder::addPointSet(void)
result << Base::blanks(indent) << "PointSet { } " << std::endl;
}
/**
* Adds an SoLineSet node after creating an SoCordinate3 node with
* beginPoints() and endPoints().
* @see startPoints()
* @see beginPoints()
* @see endPoints()
*/
void InventorBuilder::addLineSet(void)
{
result << Base::blanks(indent) << "LineSet { } " << std::endl;
}
//**************************************************************************
// text handling
@@ -591,9 +603,9 @@ void InventorBuilder::addIndexedFaceSet(const std::vector<Vector3f>& points, con
if (points.empty() || indices.size() < 4)
return;
result << " Separator { " << std::endl
<< " ShapeHints {" << std::endl
<< " creaseAngle " << crease << std::endl
<< " }" << std::endl
<< " ShapeHints {" << std::endl
<< " creaseAngle " << crease << std::endl
<< " }" << std::endl
<< " Coordinate3 { " << std::endl
<< " point [ ";
std::vector<Vector3f>::const_iterator it_last_p = points.end()-1;
@@ -731,11 +743,11 @@ void InventorBuilder::addNurbsSurface(const std::vector<Base::Vector3f>& control
}
void InventorBuilder::addCylinder(float radius, float height)
{
result << Base::blanks(indent) << "Cylinder {\n"
<< Base::blanks(indent) << " radius " << radius << "\n"
<< Base::blanks(indent) << " height " << height << "\n"
<< Base::blanks(indent) << " parts (SIDES | TOP | BOTTOM)\n"
{
result << Base::blanks(indent) << "Cylinder {\n"
<< Base::blanks(indent) << " radius " << radius << "\n"
<< Base::blanks(indent) << " height " << height << "\n"
<< Base::blanks(indent) << " parts (SIDES | TOP | BOTTOM)\n"
<< Base::blanks(indent) << "}\n";
}
@@ -796,4 +808,4 @@ void InventorBuilder::addTransformation(const Vector3f& translation, const Vecto
<< rotationaxis.x << " " << rotationaxis.y << " " << rotationaxis.z
<< " " << fAngle << std::endl;
result << Base::blanks(indent) << "}" << std::endl;
}
}