2015-02-01 4 views
0

파라 메트릭 OpenSCAD 모델을 생성하고이를 우주 사용자 정의 프로그램으로 가져 오기를 시도했습니다. 그러나, 다음과 같이 가정한다 : http://i.stack.imgur.com/BXFsQ.jpg하지만이 가까이 같습니다 http://i.stack.imgur.com/rOF5b.png왜 OpenCAD 모델이 유니버스에서 올바르게 렌더링되지 않습니까?

는 thingiverse 단순히 제대로 아무것도 렌더링하지 않습니다, 또는 거기는 (아래 코드는 재현)

//Do Nothing = 0 
//Increment = 1 
//Decrement = 2 
//Increment + Zerocheck = 3 
//Decrement + Zerocheck = 4 

//Text position: 
//Top left: 0 
//Left side inwards: 1 
//Left side outwards: 2 

/* [Instructions] */ 

//Instructions for the Left Counter 
Left_counter = 0; // [0:Do Nothing,1:Increment,2:Decrement,3:Increment and Check Zero,4:Decrement and Check Zero] 

//Instructions for the Middle Counter 
Middle_counter = 0; // [0:Do Nothing,1:Increment,2:Decrement,3:Increment and Check Zero,4:Decrement and Check Zero] 

//Instructions for the Right Counter 
Right_counter = 0; // [0:Do Nothing,1:Increment,2:Decrement,3:Increment and Check Zero,4:Decrement and Check Zero] 

//Hole that currently has no purpose 
No_Purpose_Hole = 0; // [0:Don't create hole,1:Create hole] 

/* [Text] */ 

//Text to show 
Text=""; 

//Can be used for card number, description, etc. 
Text_position=0;// [0:Top left corner (1-3 chars),1:Left side facing inwards (1-12 chars),2:Left side facing outwards (1-12 chars)] 

/* [Hidden] */ 

$fn=30; 

include <write/Write.scad>; 

punchcard(); 

module punchcard(){ 

scale([25.4,25.4,25.4]) 
difference(){ 
card(Text); 
union(){ 


if (Left_counter == 1) 
    hole(3); 
if (Left_counter == 2) 
    hole(1); 
if (Left_counter == 3){ 
    hole(3); 
    hole(5);} 
if (Left_counter == 4){ 
    hole(1); 
    hole(5);} 

if (Middle_counter == 1) 
    hole(2); 
if (Middle_counter == 2) 
    hole(8); 
if (Middle_counter == 3){ 
    hole(2); 
    hole(4);} 
if (Middle_counter == 4){ 
    hole(8); 
    hole(4);} 

if (Right_counter == 1) 
    hole(10); 
if (Right_counter == 2) 
    hole(7); 
if (Right_counter == 3){ 
    hole(10); 
    hole(9);} 
if (Right_counter == 4){ 
    hole(7); 
    hole(9);} 

if (No_Purpose_Hole == 1) 
    hole(6); 


}}} 


module card(text){ 
    difference(){ 
     cube([3.3,1.8,.1]); 
     translate([0,0,-.5])union(){ 
     //positioning holes 
      translate([1.65,.25,0]) 
       cylinder(d=.25,h=1); 
      translate([1.65, 1.55,0]) 
       cylinder(d=.25,h=1); 
     //threading holes 
      for(x=[.125,3.175]) 
       for(y=[.125,1.675]) 
        translate([x,y,0]) 
         cylinder(d=.125,h=1); 
     } 
if (Text_position == 0) 
    translate([.4,1.675,.1])    
    scale([.04,.04,.1]) 
     writecube(text = Text, face = "top", size = .01); 
if (Text_position == 1) 
    translate([.1,.9,.1]) 
    scale([.04,.04,.1]) 
    rotate([0,0,90]) 
     writecube(text = Text, face = "top", size = .01); 
if (Text_position == 2) 
    translate([.1,.9,.1]) 
    scale([.04,.04,.1]) 
    rotate([0,0,-90]) 
     writecube(text = Text, face = "top", size = .01); 


    } 
} 

module hole (position){ 

    translate([.3*position,0.7,-.5]) 
    union(){ 
     cylinder(d=.2, h=1); 
     translate([-.1,0,0]) 
      cube([.2,.3,1]); 
     translate([0,.3,0]) 
      cylinder(d=.2, h=1); 
     }} 
모델에 문제가
+0

아래 주석에 따르면 Thingiverse 업데이트 이후 더 이상 재생산 할 수 없습니다. –

답변

0

당신은 운문의 렌더링이 꺼져있는 방법을 명시 해 주실 수 있습니까? 두 번째 이미지는 OpenSCAD 렌더링과 비슷합니다. 질문에 대한 답변을 이미 찾은 경우 대답에 대해 알려주십시오.

+0

이제는 작동합니다 - 2015.03에 대한 우주선 업데이트가 파일을 전혀 변경하지 않고 작동하므로 문제가 해결되었다고 생각합니다. (그리고 그것을보고, 우연히 위의 두 이미지를 바꿨습니다) –