2015-07-04 53 views
1

在OpenSCAD我执行下面的动画:我们如何计算CSG对象的音量?

WhR = 1.5; // wheel radius 
WhH = 6; // wheel height 
WpR = 1; // workpiece radius 
WpH = 6; // workpiece height 

$fn = 30; 
pos = position($t); 

intersection(){ 
rotate([0,-90,0]){ 
cylinder(WpH, WpR,WpR); 
} 

translate([pos,0,-2.5]){ 
cylinder(WhH,WhR,WhR); 
} 
} 

function position(t) = -7.5 + t; 

我的问题是,我怎么能计算和交叉点期间出口“量量”? [如果你知道该怎么做,在VTK或任何其他库,请赐教!]

enter image description here

回答

0

OpenSCAD不直接对这种支持。

RapCAD确实不过,通过使用绑定$()的:

bound$()cube(10);