nmwsharp / geometry-central

Applied 3D geometry in C++, with a focus on surface meshes.
https://geometry-central.net
MIT License
1.07k stars 149 forks source link

Drawing stripes on a mesh? #177

Open r03ert0 opened 6 months ago

r03ert0 commented 6 months ago

Hello!

Question 1. Is there some code around that I could use to see how to draw stripes (computed using computeStripePattern and extractPolylinesFromStripePattern) on top of a mesh in polyscope?

Question 2. Is there a way of using computeStripePattern in a tetrahedral mesh (i.e., stripes on the the whole volume, not only the surface)

Thank you!

cheers,

roberto

rahul-mitra13 commented 3 months ago

Hey Roberto,

  1. The extractPolyLinesFromStripePattern() gives you set vertices and edges that you can then register as a curve network in polyscope using something along the lines of polyscope::registerCurveNetwork("my stripes", vertices, edges) where vertices and edges are what's returned from the extract polyline function.

  2. Currently there is no (public?) implementation of computing stripes on volumes in geometry-central.

Cheers, Rahul