Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Simplifying non-square meshes #14

@peterqliu

Description

@peterqliu

Great library @mourner. I've been adapting this to simplify non-square meshes, by buffering the east and southern edges with filler values. This forms a bigger square, whatever the next larger 2^n +1 integer may be (a 225x500 mesh becomes 513x513).

To keep the algorithm from simplifying away vertices on the real edge, I fill the placeholder values with a constant, extremely low/high elevation, and then trim them away:

Screen Shot 2020-08-24 at 7 59 47 PM

Two questions:

  • is this worth adding into core functionality? I'm curious if we can further optimize by skipping simplification on values that are known to be placeholders.

  • this strategy forms an interesting bandana pattern, where the eastern and southern edges keep a really fine detail (probably finer than necessary) where they were trimmed away. The savings might be minimal, but can we simplify those edges further?

Screen Shot 2020-08-24 at 7 51 00 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions