Get display component (Pattern Hatch) content via python code

Hi,

Thanks!

I got the same result. This is the return value of rg.Hatch.CreateDisplayGeometry(n,Hp[p],1):

I don’t know where is the problem
Try to print every line until you get where is the error

downloaded and opened as expected…

Check this with c#

hatches_2.gh (10.8 KB)

Check this as well
These are two components added to Fennec addon and can retrieve data from components in the canvas.
I don’t test them for all components

data.zip (23.7 KB)
test_comp.gh (12.7 KB)

Hi, can you please check and update here about ‘geos’?

thanks

Hi @anon39580149 !

It works perfectly!!! Thank you! Really appreciate your help and your kindness!!!

Just out of curiosity regarding your question:

When you said “explode it in Grasshopper”, what did you mean by that? would you mind to add a short example for exploding PatternHatch in python?

Thanks again!

Explode hatch: deconstruct the hatch to its boundary, pattern

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Hatch_Explode.htm

And this