Using the 'include' statement in OpenSCAD

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 10

  • @SailorBarsoom
    @SailorBarsoom 11 ปีที่แล้ว

    Well I utterly failed here. I can't find what I'm doing wrong. But other times I had trouble I left it and came back later, and that helped. So I'm going to go on with my life for a while, and then come back.
    Thank you for all of this. I am learning, even if I sometimes want to pull my hair out. I'll get it, really I will.

  • @NewPerfection
    @NewPerfection 12 ปีที่แล้ว

    'include' will also pull through constant values, which is important if you have something like a 'defaults.scad' file. However, it will also render any top-level objects in the included file.
    Both 'use' and 'include' have their place.

  • @amber7829
    @amber7829 11 ปีที่แล้ว

    can you difference a minkowski and a union? If you can the way I've got it isn't working. I'm trying to difference a bunch of cylinders out of a minkowski'd cube. The cylinders are in the cube but but not gone. If I zoom in on it enough I can see them inside. Any suggestions?

  • @amber7829
    @amber7829 11 ปีที่แล้ว

    The cylinders aren't touching does that matter? and if it does how do i do what im trying to do?

  • @amber7829
    @amber7829 11 ปีที่แล้ว

    i dont mean to be confusing...i had taken the union out to see if it would work like that but it didnt. what im trying to get it a smoothed edged cube with holes going through it to the other side

  • @jcmunozac
    @jcmunozac 10 ปีที่แล้ว

    Hello. Thanks for the tutorial. I´m so new to this program. Only discover it two day ago and I have a lot of question.
    But this only one by now. It is possible to have to different complex objets and make the operations between them?
    I mean, us the "include" statement with two different files?
    Thanks in advance for your help.

  • @digitaljestin
    @digitaljestin  11 ปีที่แล้ว

    It's hard to visualize what you are talking about. Can you post the code somewhere?

  • @amber7829
    @amber7829 11 ปีที่แล้ว

    TH-cam is acting weird.
    difference
    minkowski
    cube 40,40,40, center = true, fn=100;
    cylinder(r=10,h=40, center = true, fn=100);
    rotate (90,0,0)
    cylinder(r=10,h=40, center = true, fn=100);
    rotate (0,90,0)
    cylinder(r=10,h=40, center = true, fn=100);
    cylinder(r = 3, h = 60, center = true, fn=100);
    translate(10,10,0)
    cylinder(r = 3, h = 60, center = true, fn=100);
    translate(-10,10,0)
    cylinder(r = 3, h = 60, center = true, fn=100);

  • @amber7829
    @amber7829 11 ปีที่แล้ว

    I had to take all the symbols out because youtube didnt like them

  • @tagno25
    @tagno25 13 ปีที่แล้ว

    use 'use' instead of 'include'