Trim/Brep truncated cone

unhandled
(Jdsilvapereira) #22

Ok I’m trying but without sucess, I get an error if I use a square/rectangular shape … I’m trying to replace the arc to polygon center… but without success.

image

0 Likes

(Seghier khaled) #23

try this and search you will find better solution, i remember a thread here have the same pattern

cone_test3.gh (43.4 KB)

1 Like

(Jdsilvapereira) #24

Thanks…

Next week I will try this.

0 Likes

(Jdsilvapereira) #25

Hi,

Based on your project I adjust the code but now I have 1 problems. The code is ok for CONE shape but not for the other shapes. How I can adjust this ?

multiple_shapes_test47.gh (27.1 KB)

It’s possible to adjust and improve the brep zone detection to be compatible with more shape formats ?

Cone base is a circle and a circle is a closed region… how to convert a square / rectangle / closed lines in a closed region ?

If I change from edges (E) to faces (F) in BeBrep is very close but it’s not correct because the lines are cutted by the small surface (orange lines):

image

If I select the correct base ( face 5 ) the result is correct:

How I can select always the base face the face closed to Z0 ?

Thanks a lot.

0 Likes

(Seghier khaled) #26

because you need the base face ; find it than use its boundary to trim the curves

cone_test4.gh (46.9 KB)

0 Likes

(Jdsilvapereira) #27

yes, thanks.

0 Likes

(Jdsilvapereira) #28

Another question :slight_smile:

If I import a stl, the system return an error from mesh (geometry) to brep conversion:

image

How I can convert from Geometry to Brep ?

I try this but it’s not the same result.

Mesh to Brep?Part1.stl (2.4 MB)

0 Likes

(Seghier khaled) #29

it is not simple to convert mesh to brep

0 Likes

(Jdsilvapereira) #30

But it’s possible to convert a STL to a native Rhino file ? With native rhino files (drawed files) i don’t have problems.

0 Likes

(Seghier khaled) #31

i didn’t try that

0 Likes