That´s a very great tool!
Next year I hope to output a version that will rely on lines and arcs. I begin to work on it, the tools to transform a curve to lines and arcs seem to work, it uses mainly Rhinocommon method but some additional features were required.
Now I am on the slope generation, that’s the easy part.
Still struggling cutting the breps and sorting them …
Happy New Year
Debugging, optimizing … Sometime some funny things appear.
Tool now output the medial Axis in 3d
Still some problems, look at the K
It does a much better job with letters than AI image create at least ![]()
I hope it is useful, better is more subjective. I am not the cleaner coder but I like when tools work. And what I can say is that doing a robust tool is not easy. Rhino team has done excellent tools in Rhinocommon but sometimes little errors brings problem.
For example the tool Curve to Lines and Arcs is keep the tangency quite everywhere but sometime there is a little glitch. Perhaps it could be resolved by lowering the tolerances but I don’t want too much arcs for the Roof tool.
Here the tangency discontinuity using Grasshopper tool
But my medial axis tools find that
Just because of that
So I ended making a little tool to align the repair arc that are not well aligned (using Rhinocommon Blend tool with arc)
So now Medial axis are better.
From the last version for this new Year, I added some components.
Curve Region To Roof need Polycurve made with arcs and lines and oriented curves. So at the moment it is quite mandatory to use the 2 others components before.
CurvesRegionToRoof.gh (6.6 KB)
Medial axis are quite clean
In this other example you’ll have a new Font component, that can filter fonts. By default I try to output just single line fonts.
TextRoofMedialAxis.gh (8.9 KB)
Happy New year @laurent_delrieu new year, new release!!! ![]()
I think your Polyline Region to Roof need a Medial Axis output too.
Seeing the result of your component, will a type of Medial Axis Offset approximation just for a single closed polyline be possible?
Again with idea to generate quadmesh.
Multiple polylines could be much more complex since the requirement is to mantian the number of control points.
MedialAxisOffset.gh (12.5 KB)
These papers for printing paths are related to offset it
ding2016.pdf (3.3 MB)
j.rcim.2015.01.003.pdf (5.0 MB)
That’s surely doable because there is little difference between the 2 components.
Thanks for the papers, it is interesting as I have done some tools for 3d printing this could be a nice addition. Also it looks very similar to this problem
But let me think It already works quite like that !
Going back to Medial Axis and roof, I will join the 2 tools (Polyline and Arcs/Lines) in one tool as I can use the same code.
So it will look like that. You will be free to transform curve to polyline or arcsAndLines. If you provide polyline, it must stay polylines (already like that with the new component).
I updated the tools and hide the old ones. Now there is just 2 tools. One with automatic tolerancing and the other it is up to you to choose tolerances.
For the first you can load geometry with differents size
I no more do the transformation from curve to polyline inside the tools. It can brings too much curves so the brep work is tool long. If you want polyline Roof or Medial axis provide a polyline to the tool, it will be used as is.
Regarding the MedialAxisFromRegion I was thinking in this division strategy the idea is to ensure adding bisectors lines to (Li) output.
This strategy adding a bit better preccision to the MedialAxis, what do you think @laurent_delrieu ?
MedialAxisPerLines.gh (16.9 KB)
Hey Thomas,
I am beginning to look at this problem.
To my point of view the best (not fastest perhaps) is to work with the roof component.
It is quite easy to filter the brep and use them to have lines.
Here a first result. Calculation time is ~0.1 s.
The idea is to take each brep face, then look if edge is on medial axis or on contour.
Then join, orient. Then I’ll have to orient all groups of lines. and it will be good to go on a component.
Still some problems for the curves orientations but seems good.
What is the logic to have for the offset of curves ? Min distance, number of curves ?
If you want to test it works now.
And it could be projected
Thanks for the Files , It has been very useful for my urban project ![]()
@laurent_delrieu amayzing and helpfull plugin! i also wanted to use the Curve region to Roof component for hundredes of roofs but then it runs into an error. With list item i pinned down some of the problematic shapes (highlighted black) which appear very simple:
it would super if you could have a look at the attached script and help me how to use this strong tool! ![]()
250613_side_model_detailing.gh (732.6 KB)


































