Trim/Brep truncated cone

unhandled
(Jdsilvapereira) #1

Hi,

I need to trim / remove the points/curves outside the limits of the cone but in green lines (offset of external curves)

image
This is my code:

cone_test.gh (26.6 KB)

It’s necessary to create a “truncated cone” in Rhyno and select as geometry:

image

Thanks for your help.

I have another topic but it’s very offtopic with topic title.

0 Likes

(Seghier khaled) #3

offset the cone with the same distance of the circles and use it to trim the curves

0 Likes

(Jdsilvapereira) #4

Hi @seghierkhaled this is what I do, please check my code

Thanks.

0 Likes

(Seghier khaled) #5

your code is without the geometry ; you need internalise it

0 Likes

(Jdsilvapereira) #6

Sorry,

I don’t know how to do this… but you can draw a simple truncated cone (50x30x30)

and after that select as geometry in grasshopper
Thanks

0 Likes

(Seghier khaled) #7

right click on the geometry and internalise data at the bottom of the menu

0 Likes

(Jdsilvapereira) #8

cone_test_internalise.gh (32.9 KB)

Thanks, tray now :slight_smile:

0 Likes

(Jdsilvapereira) #9

Another example found in this forum and edited:

cull question_re.gh (13.5 KB)

I can trim the base. I found the region on the top layer (green), but I can’t remove/trim

0 Likes

(Seghier khaled) #10

what i suggested is using trim with brep

0 Likes

(Jdsilvapereira) #11

Sorry, I don’t understand… can you try in my code ?

The curve in the left of the image is my offset circles (pink) ? The curve of “trim with brep” is the cone geometry ?

0 Likes

(Seghier khaled) #12

cone_test2.gh (26.3 KB)

just replace it and create loft from the circles
i am not sure but i think you can make your definition more easier than that

0 Likes

(Jdsilvapereira) #13

I get an error…

0 Likes

(Seghier khaled) #14

try to remove cap component and add it again the cone is already closed brep

0 Likes

(Jdsilvapereira) #15

Nop… allways with this error… I don’t have ?
image

0 Likes

(Seghier khaled) #16

ok you use v5 and you have a problem with curves group that’s why you get a wrong result

1 Like

(Seghier khaled) #17

you have a problem from the beginning

cone_test2.gh (29.3 KB)

0 Likes

(Seghier khaled) #18

may this help you

cone_test3.gh (48.2 KB)

0 Likes

(Jdsilvapereira) #19

WOW

THANK YOU…

I will analyse your code to understant my problem :wink:

0 Likes

(Jdsilvapereira) #20

OK.

The trim is OK, but this is not the same thing…

please check this:

I neet to make a simulation of 3D printer extruder

Width of extruder is the offset of central line (sin) (to simulate the width of extruder) and in the next line I need the inverse of the line (like a mirror)

So, you can check in the image the mirror of lines and the simulation of width (offeset left and right to de central line)

I’m trying to understand how to make this in your code.

0 Likes

(Seghier khaled) #21

You can mirror the curve or move some lines in -× direction

0 Likes