First look at labels with cladding and sheathing:
View model here:
https://3dwarehouse.sketchup.com/model/22e3874d-67ec-48a3-b89f-c4001e806a5f/Complex-Roof-Test-6
I need to add a scale factor for the text size which will allow the user to adjust the size of the text for the labels. I actually need this for the entire plugin, not just this module.
The other issue is ordering the roof planes which may or may not be the same as the number of roof edges. Note, that sometimes roof edges are collinear and if their other parameters are the same (ie. pitch, overhang etc...) the roof planes will merge into one. For example take roof plane "N" in the model shown, it is bounded by two separate eave edges.
The ordering of roof planes gets a little bit interesting in these cases but all one can do is one's best to bring as much order to the chaos as possible.
Each label is centered on its respective roof plane (via the bounds.center method), sometimes this works out and sometimes it doesn't. I don't really have any ideas on a better algorithm for the time being.
View model here:
https://3dwarehouse.sketchup.com/model/22e3874d-67ec-48a3-b89f-c4001e806a5f/Complex-Roof-Test-6
I need to add a scale factor for the text size which will allow the user to adjust the size of the text for the labels. I actually need this for the entire plugin, not just this module.
The other issue is ordering the roof planes which may or may not be the same as the number of roof edges. Note, that sometimes roof edges are collinear and if their other parameters are the same (ie. pitch, overhang etc...) the roof planes will merge into one. For example take roof plane "N" in the model shown, it is bounded by two separate eave edges.
The ordering of roof planes gets a little bit interesting in these cases but all one can do is one's best to bring as much order to the chaos as possible.
Each label is centered on its respective roof plane (via the bounds.center method), sometimes this works out and sometimes it doesn't. I don't really have any ideas on a better algorithm for the time being.