在Geomagic Studio中可以通过Python宏计算音量吗?(Is it possible in Geomagic Studio to compute volume via Python ma

编程入门 行业动态 更新时间:2024-10-27 07:23:09
在Geomagic Studio中可以通过Python宏计算音量吗?(Is it possible in Geomagic Studio to compute volume via Python macro?)

我正在使用Python脚本在Geomagic Studio 2012中实现宏。我需要在一组扫描对象上计算其中几个的数量与总数的关系。

目前,我:

用“计算量”记下通过Geomagic菜单计算出的音量; 拆分原始模型,获得与多边形岛一样多的模型; 对于某些型号,仍然通过菜单,计算和记下他们的卷; 找到我想要的有趣模型体积百分比除以集合的总体积。

是否可以自动读取/写入每个模型的体积,并计算最终的百分比?

(Geomagic支持中心中关于“计算量”功能的唯一参考就在这里,但写得不好: http : //support1.geomagic.com/link/portal/5605/5668/Article/870/What-are-some -known-of-existing-macros )

I'm using Python scripts to realize macros in Geomagic Studio 2012. I need to calculate, on a set of scanned objects, the volume of several of them respect to the total.

Currently, I:

write down the volume calculated via Geomagic menu with "compute volume"; split the original model obtaining as many models as the island of polygons are; for some models, still via menu, compute and write down their volumes; find my desired percentage of volume of interesting models divided by the total volume of the set.

Is it possible to automate the reading/writing of the volume of each model, and calculate the final percentage?

(The only reference on "compute volume" function in Geomagic Support Center is here, but it's not well written: http://support1.geomagic.com/link/portal/5605/5668/Article/870/What-are-some-known-parameters-of-existing-macros)

最满意答案

乔瓦尼,

查询宏上有一篇知识库文章。 它允许以编程方式访问体积(用于封闭的歧管聚合物),表面积和重心......等。 这是链接:

http://support1.geomagic.com/ics/support/KBAnswer.asp?questionID=2236&hitOffset=190+99+90+83

它使用地理位置。 宏模块,因此它与2012兼容,可以与v1 Python API混合使用。 API帮助文档随2012一起安装,并且应该有获取模型列表并迭代它们的示例。 默认情况下,文档位于安装文件夹中(对于Studio):

C:\ Program Files \ Geomagic \ Geomagic Studio 2012 \ help \ platform \ index.html

-Richard

Giovanni,

There is a KB Article on the query macro. It allows programmatic access to the volume (for a closed manifold polymesh), surface area, and center of gravity...and others. Here's the link:

http://support1.geomagic.com/ics/support/KBAnswer.asp?questionID=2236&hitOffset=190+99+90+83

It uses the geo. macro module so it is compatible with 2012 and can be mixed with the v1 Python API. The API help docs are installed with 2012 and should have examples for getting the list of models and iterating over them. The docs are located in the install folder, by default (for Studio):

C:\Program Files\Geomagic\Geomagic Studio 2012\help\platform\index.html

-Richard

更多推荐

本文发布于:2023-07-30 06:28:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1336753.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可以通过   音量   Geomagic   Studio   Python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!