Polyhedron CC~ish Subdivision Demo OPENSCAD by Torleif 3d model
3dmdb logo
Thingiverse
Polyhedron CC~ish Subdivision Demo  OPENSCAD by Torleif

Polyhedron CC~ish Subdivision Demo OPENSCAD by Torleif

by Thingiverse
Last crawled date: 3 years, 1 month ago
As always. - All OPENSCAD
///////////////////////////////////////////////////////////////////////////////
//CC subdivision-ish in that regard this impl don't split edges
// subdivides any properly watertight manifold polyhedron : point-list and face-list
// [ [[10,10,10],[10,-10,-10],[-10,10,-10],[-10,-10,10]], [[2,1,0],[3,2,0],[1,3,0],[2,3,1]]]
// usage cc([points,faces],iterations(0=off),curvebias)
///////////////////////////////////////////////////////////////////////////////
// Demo Code
in=cc(cc(tet(),Sub1),Sub2,-0.5); //one regular and the two passes with negative bias forpointyness
t=cc(in,Sub3); // more passes
trender(t); // pretty render
//polyhedron(t[0],t[1]); // fast
// End Of Demo Code
Prior art by Wallace and obviously Catmull-Clark

Tags