rom12345
Hi all
I have notice that houdini produces separated vertices for each polygon, almost like and unwelded model. Can anyone point me the right direction on how to get a point list of only those vertices along the seems of the uvmap.
This is for a custom exporter.
hmm… in Houdini lingo vertex is a corner of a polygon, not a point this corner is attached to. Houdini doesn't have to produce unwelded geometry (i.e. npoints==nvertices) and in most cases it doesn't. It's just listing vertices besides points.
Anyway, if your uv is a vertex attribute, you could promote it to a points class, and then group with point expression like:
point(path, $PT, “uv”, 0) ==1 || point(path, $PT, “uv”, 1) == 1
Python code without promoting uv along the line:
geo = mySOP.geometry()
seam =
for prim in geo.prims():
for v in prim.vertices()
if True in ]:
seam.append(v.point().number())
seams = tuple(set(seams))