wrap.subdivide

wrap.subdivide(geom, nSubdivisions = 1)

Subdivide geometry using Catmull-Clark subdivision

Parameters:

geom : wrap.Geom

Input geometry, should have a manifold topology

nSubdivisions : int, optional

Number of subdivisions, defaults to 1. subdivide(geom,2) is equivalent to subdivide(subdivide(geom))

Returns:

result : wrap.Geom

Returns subdivided geometry. Returned geometry will have the same visual properties and a texture as geom