Page MenuHome

Geometry Nodes: Add Selection Input to Resample Curves Node
ClosedPublic

Authored by Johnny Matthews (guitargeek) on Nov 1 2021, 11:39 PM.

Details

Summary

Add a per spline selection input field to determine which splines will be resampled.

Diff Detail

Repository
rB Blender
Branch
resample_pick (branched from master)
Build Status
Buildable 18376
Build 18376: arc lint + arc unit

Event Timeline

Johnny Matthews (guitargeek) requested review of this revision.Nov 1 2021, 11:39 PM
Johnny Matthews (guitargeek) created this revision.
Hans Goudey (HooglyBoogly) requested changes to this revision.Nov 2 2021, 1:15 AM

Good idea, just some smaller comments inline.

source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc
79

This one isn't optional I don't think.

212

I'd prefer using get_evaluated_as_mask here.

239

Does this mode not need a copy too?

This revision now requires changes to proceed.Nov 2 2021, 1:15 AM
Johnny Matthews (guitargeek) marked 3 inline comments as done.
  • Minor updates and omissions
Hans Goudey (HooglyBoogly) added inline comments.
source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc
44

Unnecessary newline here.

273–274

Could skip the selection variable here, and just assign mode_param.selection.

Johnny Matthews (guitargeek) marked 2 inline comments as done.
  • Minor Cleanup
This revision is now accepted and ready to land.Nov 3 2021, 2:24 PM

@Johnny Matthews (guitargeek) thank you...

I think selection segments can be very useful too... like resampling without lost corner knots.

I think selection segments can be very useful too... like resampling without lost corner knots.

That would probably be a different sample method.