Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Proper metadata usage
#1
I need my SplineController to quickly access the radius of points along the spline. I have the math working properly but am trying to best fit it into the architecture of Curvy. 

1) Is it correct place to cached the radius values in Metadata (i.e. public class RadiusMetadata : CurvyInterpolatableMetadataBase<float> )?
    If not, what would you suggest?

2) Only RadiusMetadata of certain segments would need to be recalculated when a control point is manipulated. Will this occur using CurvySpline.SetDirty( cpOfRadiusToUpdate,...) or automagiclly by just setting the segment's LocalPosition ?
     If so, what to implement in RadiusMetadata to catch dirty notifications?
     If not, do I just implement my own RadiusMetadata.BuildCache when any of it's segment's dependent cps changes?
       (It would be nice if this 'dependency' is handling was the same one Curvy uses taking 'followUp' things into consideration. I don't want to reinvent it)
     Or what would you suggest?
Reply


Messages In This Thread
Proper metadata usage - by tairoark - 09-29-2022, 09:18 PM
RE: Proper metadata usage - by _Aka_ - 09-30-2022, 08:54 AM
RE: Proper metadata usage - by _Aka_ - 10-01-2022, 12:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  "MetaData" Of Entire Spline Heightmap SAMYTHEBIGJUICY 3 6 10-16-2023, 08:42 AM
Last Post: _Aka_
  Metadata interpolation tairoark 3 10 10-17-2022, 01:07 PM
Last Post: _Aka_
  Accessing Metadata from CG hucota7 1 8 02-16-2022, 08:49 PM
Last Post: _Aka_
  Metadata warnings Josenildo 4 740 07-13-2021, 12:19 AM
Last Post: p30better

Forum Jump: