Skip to content

Conversation

@danieldouglas92
Copy link
Contributor

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.

image image

Copy link
Member

@MFraters MFraters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Let me know when you want a review of the code :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants