3d 如何以编程方式更改linux服务器上现有的stl(立体摄影)文件?

3d 如何以编程方式更改linux服务器上现有的stl(立体摄影)文件?,3d,rapid-prototyping,3d,Rapid Prototyping,我想在linux服务器上修改使用solidworks创建的stl文件的某些方面。有没有一种经过测试的方法来完成这样的任务?目前我正在研究3d库或Meshlab服务器。您可以像这样使用Meshlab服务器 meshlabserver -i sourcefilepath -o resaultfilepath -s process.mlx 您需要编写process.mlx文件来定义模型上的操作 例如,z轴上比例的一半在process.mlx以下 <!DOCTYPE FilterScript&g

我想在linux服务器上修改使用solidworks创建的stl文件的某些方面。有没有一种经过测试的方法来完成这样的任务?目前我正在研究3d库或Meshlab服务器。

您可以像这样使用Meshlab服务器

meshlabserver -i sourcefilepath -o resaultfilepath -s process.mlx
您需要编写process.mlx文件来定义模型上的操作

例如,z轴上比例的一半在process.mlx以下

<!DOCTYPE FilterScript>
<FilterScript>
 <filter name="Transform: Scale, Normalize">
  <Param value="1" type="RichFloat" description="X Axis" name="axisX" tooltip="Scaling"/>
  <Param value="1" type="RichFloat" description="Y Axis" name="axisY" tooltip="Scaling"/>
  <Param value="0.5" type="RichFloat" description="Z Axis" name="axisZ" tooltip="Scaling"/>
  <Param value="false" type="RichBool" description="Uniform Scaling" name="uniformFlag" tooltip="If selected an uniform scaling (the same for all the three axis) is applied (the X axis value is used)"/>
  <Param value="0" enum_val0="origin" enum_val1="barycenter" enum_val2="custom point" type="RichEnum" description="Center of scaling:" name="scaleCenter" enum_cardinality="3" tooltip="Choose a method"/>
  <Param type="RichPoint3f" x="0" y="0" description="Custom center" z="0" name="customCenter" tooltip="This scaling center is used only if the 'custom point' option is chosen."/>
  <Param value="false" type="RichBool" description="Scale to Unit bbox" name="unitFlag" tooltip="If selected, the object is scaled to a box whose sides are at most 1 unit lenght"/>
  <Param value="true" type="RichBool" description="Freeze Matrix" name="Freeze" tooltip="The transformation is explicitly applied, and the vertex coordinates are actually changed"/>
  <Param value="false" type="RichBool" description="Apply to all visible Layers" name="allLayers" tooltip="If selected the filter will be applied to all visible mesh layers"/>
 </filter>
</FilterScript>
然后在窗口中设置比例,您可以取消选中
均匀缩放
复选框以分别缩放每个轴

然后单击
应用
按钮

最后,
Filters>Show current filter script
,您可以在此处查看当前脚本,选择
Tansform:Scale,Normalize
,然后单击
将脚本保存为
process.mlx


这么多年过去了,你最后做了什么。非常感谢。
Filters > Normals, Curvatures and Orientation > Transform: Scale, Normalize