It looks like you're new here. If you want to get involved, click one of these buttons!
I've attached a simple proof-of-concept Canvas file (RestLength_POC, v2.4.0) which attempts to create & apply a 'rest length' to positions based on surrounding (neighboring) points. Similar to the 'flag' Sample file, this attempts to avoid stretching while deforming & maintain overall lengths between vertices.
In pseudocode/outline: given an arbitrary PolygonMesh (in this case a 10x5pt plane), get surrounding points, calculate & store distance to neighbors as a variable called 'rest_length', deform geo (in this case TurbulizeVec3), then add the difference between current distance to surrounding points & 'rest_length'.
My trouble (aside from lack of understanding) is in converting the indices returned from GetPointSurroundingPoints into usable positions. I've tried several methods here, though still scratching my head. Perhaps there is a node built for Kraken which already does this (store/use rest lengths), though I'm not sure where to look or what it might be called.
I'd appreciate any information or explanation, or even a link to the relevant docs.
©Copyright 2017 Fabric Software Inc. All rights reserved. | Privacy