Skip to content

add(triangle): simple triangle subdivision #14

Description

@gsimone

See

https://graphics.stanford.edu/~mdfisher/subdivision.html
https://tylerxhobbs.com/essays/2017/aesthetically-pleasing-triangle-subdivision

Splitting the triangle in two:
- get a random vertex A
- get the mid point of the opposing side M
- add a new edge AM
- return 2 new triangles ( ABM, AMC )

Splitting in 4 (sudbidivision):
- get midpoint of each vertex ( D, E, F )
- return 4 new triangles [ ABF, DBE, ECF, DEF ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions