Spherical Cuts from 4 points

calendar_today

09.03.2025

label

Modeling

mouse

Houdini 20.5

Description

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

1 Code

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