reading stl

hi, when I read stl, I get multiple same point (not unique). Is there a way to make the mesh unique (like sewing etc.) or should I write it myself?

Matthias Teich's picture

Hi!

How do you read STL files? Do you use MeshVS?

When you have a TopoDS_Shape you can use this code for sewing:

BRepBuilderAPI_Sewing sew;
sew.Add(shape);
sew.Perform();
shape = sew.SewedShape();

Maili's picture

I use StlMesh_Mesh (RWStl::ReadFile) and MeshVS since I think its rendered faster that way or is it not?