polyskel icon indicating copy to clipboard operation
polyskel copied to clipboard

Extra edge for a t-shape

Open vvoovv opened this issue 5 years ago • 5 comments
trafficstars

demo.py t-shape_extra_edge.txt image

vvoovv avatar Sep 07 '20 15:09 vvoovv

Also for a polygon with a hole: demo.py t-shape_hole_extra_edge.txt image

vvoovv avatar Sep 07 '20 15:09 vvoovv

This is still extant. I'm not sure if this can be solved without introducing the "multi-events" (see #16 )

Many thanks for the reports and the example files, by the way!

Botffy avatar Oct 11 '20 21:10 Botffy

We are trying to solve that through postprocessing of the skeleton in our port of the library: https://github.com/prochitecture/bpypolyskel/issues/5#issuecomment-706172626

vvoovv avatar Oct 12 '20 16:10 vvoovv

Wow, that picture of those buildings is pretty awesome, I love it!

I'll link to your port in the Readme :)

As for the erroneous edge in the T-shaped polygon: I don't actually think it's an extra edge, I'm pretty sure it should be there, except it should be horizontal. I understand this isn't ideal for your application, but it must be there, otherwise it wouldn't be a tree. Yeah, it can be eliminated in postprocessing, I guess, though the underlying problem bothers me anyhow.

Botffy avatar Oct 12 '20 16:10 Botffy

I'll link to your port in the Readme :)

That would be nice. Here is the description of our port:

A port of Botffy/polyskel library for Blender that outputs polygons formed by a straight skeleton. 'pip install mathutils' to use it as a general purpose library independent of Blender.

vvoovv avatar Oct 12 '20 16:10 vvoovv