Spherical Cuts from 4 points

calendar_today

09.03.2025

label

Hard-surface

mouse

Houdini 20.5

Description

Cutting a mesh based on the predicated in-sphere of 4 points.

1 Code

C
        int pts[] = expandpointgroup(0, 'select');

vector p0 = point(0, 'P', pts[0]);
vector p1 = point(0, 'P', pts[1]);
vector p2 = point(0, 'P', pts[2]);
vector p3 = point(0, 'P', pts[3]);

float mask = predicate_insphere(p0, p1, p2, p3, v@P);

f@mask = mask;
    

2 Documentation

download

Downloads

link

Related articles

favorite

185

label

Hard-surface

Aircraft propeller

favorite

325

label

Hard-surface

Ball

favorite

147

label

Hard-surface

Bike helmet

favorite

270

label

Hard-surface

Bottle from cylinder using VOPs

favorite

202

label

Hard-surface

Bridging and Chaining Shapes

favorite

220

label

Hard-surface

Concept Chair