Title: Selective Convex Hull Trimming in Blender Geometry Nodes - Maintaining Inner…
- User
Title: Selective Convex Hull Trimming in Blender Geometry Nodes - Maintaining Inner Connections While Removing Outer Surfaces
I'm working on a complex Geometry Nodes setup in Blender that involves creating and selectively trimming convex hulls between instanced objects. Here's my specific scenario and challenge:
Setup Overview:
- Input: A collection containing multiple objects that are instanced
- Primary Goal: Generate a convex hull between pairs of these instances
- Secondary Goal: Selectively trim the convex hull while preserving crucial connections
Current Implementation:
- Using Collection Info node to access object instances
- Implementing index-based pairing (1-2, 2-3, etc.) for object selection
- Generating convex hull between each pair using Convex Hull node
- Attempting to trim excess geometry using Geometry Proximity node
The Critical Challenge: The core issue lies in the trimming logic. I need to:
- KEEP: The "bridge" portion of the convex hull that directly connects the two objects
- DELETE: The outer portions of the convex hull that extend beyond the connecting area
- MAINTAIN: This behavior consistently regardless of the distance between objects
Current Technical Approach:
- Geometry Proximity node to detect proximity to original geometry - Less Than node (currently set to 0.504) to establish trimming threshold - Delete Geometry node for actual trimmingThe Problem: When objects are far apart, the current setup works adequately. However, as objects move closer together, the trimming behavior becomes problematic:
- At lower threshold values: Nothing gets trimmed
- At higher threshold values (>0.504): Critical connecting geometry gets deleted
- No intermediate value seems to maintain consistent results across different object distances
Desired Behavior: I need a solution that:
- Intelligently preserves the direct connection between objects
- Automatically adapts to varying distances between objects
- Consistently trims only the outer excess portions
- Works with any pair of objects from the collection
Technical Requirements:
- Must work within Geometry Nodes (no Python scripting)
- Should handle dynamic object positioning
- Must maintain topology for potential later operations (remesh, etc.)
- Should work with the existing convex hull workflow
Question: How can I modify my current node setup to achieve consistent trimming behavior that preserves the connecting geometry while removing excess hull portions, regardless of object proximity?
- Assistant