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

Subdivide meshFace or subDface

$
0
0

Hi, I am looking to replicate the functionality of the Subdivide Rhino command through Python scripting. The image below shows the process. I sub-object select and get the meshface and/or subDface, then subdivide only the selected face. Eventually I want to get non-uniformly subdivided mesh/SubD (somewhat resembling a quadtree).

image

In the case of subDFace, I found the SubDivide() method, but I can only invoke it on a subD object. In the case of a mesh, I understand I can insert a vertex then reconstruct the mesh; but this is quite a lengthy procedure and thus I was wondering if there is a good reference/sample code?

p.s. I want to avoid the approach of calling Rhino commands in my script. Thanks in advance.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles