Measure SOP bug?

   1725   3   1
User Avatar
Member
59 posts
Joined: April 2006
Offline
Platform: Windows 10
Houdini: 18.0.499

I used a Connectivity SOP set to Primitive connectivity type and Attribute set to “piece” to define the connected pieces of my geometry. The “piece” attribute ends up with a range of values from 0 to 2, which indicates three connected pieces of geometry. And when I hook up a Color SOP set to Random From Attribute “piece”, I see the three pieces of connected geometry in different colors.

However, when I connect a Measure SOP to this, set to Measure Area, Primitive Element Type, Accumulate By Piece, Piece Attribute “piece”, it creates four area values, not three. One of the three pieces is treated as two pieces and given two area measurements.

How can this happen, and how can I get the Measure SOP to only calculate and assign three area values?

Thanks.

(I've attached an example model that exhibits this phenomenon.)
Edited by jrcooper - Nov. 13, 2020 19:20:43

Attachments:
pawn.bgeo (825.7 KB)

User Avatar
Member
59 posts
Joined: April 2006
Offline
Has anyone else been able to at least confirm the behavior I'm seeing (using the test geo I provided)?
User Avatar
Member
8532 posts
Joined: July 2007
Offline
your geometry is nonmanifold, so you can expect all kinds of problems

after you load you object you can try using Poly Doctor, set Primitives/Ill-Formed to Ignore and Topology/Non-Manifold to Repair, you can also check Visualize Repaired Points to see which area was causing the issue

then your Connectivity and Measure should work

you can still submit it as a bug for Measure SOP as in theory nonmanifold geo shouldn't trip area computation, especially not for poys
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
59 posts
Joined: April 2006
Offline
Thank you for the help! Much appreciated.
  • Quick Links