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

A little advice about rs. JoinSurfaces () function

$
0
0

@603419608 wrote:

Hello everyone


Like this kind of situation.
I want to join four surface,If use BrepJoin Components or Rhinocommon will return One open brep and two Untrimmed Surface.But I use rs. JoinSurfaces () function will return null.
Because JoinSurfaces function only returns a polysurface object,
So I hope:
Put this code

(if joinedbreps is None or len (joinedbreps)! = 1:
Return scriptcontext. Errorhandler ()
Rc = scriptcontext. Doc. Objects. AddBrep (joinedbreps [0]))

Modified to

(
If joinedbreps is None:
Return scriptcontext. Errorhandler ()
Rc = [scriptcontext. Doc. Objects. AddBrep (joinedbreps [I]) for I in xrange (len (joinedbreps)]
)

This file
JoinSurface_Advice.gh (10.3 KB)

Thanks

——Naruto

Posts: 8

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5823

Trending Articles