Problem importing stl cet has coincident vertices
Hello all,
One quick question
I have a proven program that works with stl import. However, when i try to import this file [1] i get the following error
FATAL /build/
FATAL /build/
FATAL /build/
What i dont understand is why. The same file without one tiny shape covering 2 holes passes just fine.
The code i use to import the stl is the following
facets = ymport.stl(name)
rod1 = O.bodies.
# converts facets to gts (see the other question)
s = gts.Surface()
for facet in facets:
vs = [facet.state.pos + facet.state.ori*v for v in facet.shape.
vs = [gts.Vertex(
es = [gts.Edge(
f = gts.Face(
s.add(f)
print s.is_closed()
threshold = 1e-3
s.cleanup(
print s.is_closed()
assert s.is_closed()
# use gts to filter spheres
pred = inGtsSurface(s)
print "r = ", r
I really appreciate any suggestions
[1] http://
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask JOHN for more information if necessary.