[WIP] Add Contours as a Method for Creating Subducting Plate Features #829
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Begin working towards addressing issue #429. This is still an early work in progress, and a lot of the necessary parameters are currently hard-coded in, but this is laying the ground work to allow the user to define planar features like faults and slabs by prescribing the location of depth contours.
The current implementation requires defining the depth of the contour, and the coordinates of the depth contour projected onto the surface of the world. The coordinates of each contour is fit with a bezier curve, the total arclength of the bezier curve is determined and is then divided up into N segments of even length. Finally, the segments are iterated over, and are connected piecewise linearly to the corresponding segment on each depth contour, creating a 2-D planar feature in 3-D space. A thickness is provided, which then yields a 3-D subducting plate or fault.
After this is generalized in such a way that the user can actually provide the depth contours within the world builder file, this could hypothetically be extended to allow for the contours to be connected in a higher order way (i.e. quadratic), instead of piece wise linearly, depending on how jagged the feature is with this current method.
Below I show two examples of how this works for very simple geometries. This shows a slab that is made up of 2 depth contours, and in the top picture the 2nd depth contours is shallower than the 2nd depth contour in the bottom picture.