在OpenSCAD中,我实现了以下动画:
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或任何其他库中做到这一点,请启发我!

发布于 2016-01-09 00:33:25
https://stackoverflow.com/questions/31215831
复制相似问题