Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4120

JoinSurfaces() creating an invalid object from valid surfaces?

$
0
0

Josh wrote:

Hi, I have a surface and a polysurface, and when I call rs.JoinSurfaces() as below, the resulting object fails the IsObjectValid() check. When I join the same two surfaces interactively via _Join, the resulting object checks out ok. As you can see below, the input objects seems to be valid. Any idea what the problem could be?

assert rs.IsObjectValid(news)
assert rs.IsObjectValid(lowerSurfaceId)
assert rs.IsSurface(lowerSurfaceId)
assert rs.IsPolysurface(news)
cupobj = rs.JoinSurfaces((lowerSurfaceId, news), delete_input=True)
assert cupobj
assert rs.IsObjectSolid(cupobj)
assert rs.IsPolysurface(cupobj)
assert rs.IsPolysurfaceClosed(cupobj)
assert rs.IsObjectValid(cupobj)    # <-------- THIS CHECK FAILS

And when I interactively check the resulting invalid object it says:

  Rhino polysurface object is not valid.

  ON_ArcCurve m_arc is not valid
  ON_Brep.m_C3[11] is invalid.

Any suggestions?
Thanks,
Josh

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4120

Trending Articles