Page MenuHome

Geometry Nodes: Fields Version of Curve Subdivide
ClosedPublic

Authored by Johnny Matthews (guitargeek) on Sep 17 2021, 3:51 AM.

Details

Summary

Fields-aware version of the curve subdivide node. Cuts accepts an int field

Diff Detail

Repository
rB Blender

Event Timeline

Johnny Matthews (guitargeek) requested review of this revision.Sep 17 2021, 3:51 AM
Johnny Matthews (guitargeek) created this revision.

This looks good, the change is quite simple anyway.

The node's exec function should be nested inside of modify_geometry_sets now, so it can work on instances.

I'm accepting this since those two changes are trivial though.

I'll probably de-duplicate the code by moving it to the geometry module after your commit.

source/blender/nodes/geometry/nodes/node_geo_curve_subdivide.cc
345

This can use get_evaluated<int>(0); to get the VArray directly instead of the GVArray_Typed, just a bit simpler that way.

This revision is now accepted and ready to land.Sep 30 2021, 9:32 PM
Johnny Matthews (guitargeek) marked an inline comment as done.

Add modify_geometry_sets and other final cleanup.

Hans Goudey (HooglyBoogly) added inline comments.
source/blender/nodes/geometry/nodes/node_geo_curve_subdivide.cc
339–342

selection_evaluator -> evaluator

This revision was automatically updated to reflect the committed changes.
Johnny Matthews (guitargeek) marked an inline comment as done.