Delphi 中开放级联的接口
我正在尝试找到一种方法来使用 Open Cascade(www.opencascade.org) - 3D 建模技术我们的软件是用 Delphi 编写的。
我确实设法找到了一个支持 Open Cascade 的 ActiveX,但在尝试它时,我不喜欢渲染图像的视觉质量。 ActiveX 库可以在此处 (www.ewcad.com) 找到。
我无法找到任何 VCL,也无法在互联网上找到任何进口声明。
I am trying to find a way to use Open Cascade(www.opencascade.org) - 3D Modeling Technology in one of our software which is written in Delphi.
I did manage top find an ActiveX which supports Open Cascade, but on trying it I did not like the visual quality of rendered images. The ActiveX lib can be found here (www.ewcad.com).
I am not able to locate any VCL for this nor can I find any import declarations for this on internet.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是什么让您认为如果您有原生 VCL 包装器,视觉输出质量会更高?底层库是 C++,而不是 C,因此导入库是不够的。对于如此大的项目来说,“C++ 类到 VCL 包装器”接口需要花费数年的时间。
你看过GLScene吗? http://glscene.sourceforge.net/wikka/HomePage
W
What makes you think that the visual output quality would be higher if you had a native VCL wrapper? The underlying library is C++, not C, so import libraries are not going to be enough. A "C++ class to VCL wrapper" interface for such a large project would be years of work.
Have you looked at GLScene? http://glscene.sourceforge.net/wikka/HomePage
W
我通过导出 ANSI C 函数的 DLL 使用 Delphi 中的 OCC。不需要导出所有超过 12000 个对象,只需一组包装函数即可初始化、添加几何图形、修改它并将其存储到磁盘。
我从 OCC 包提供的示例应用程序之一开始,并将其转换为我的个人 DLL,在运行时加载。
我花了大约两周的时间才制作出第一个工作样本。
I am using OCC from Delphi through a DLL exporting ANSI C functions. It was not required to export all of the more then 12000 Objects, just a set of wrapper functions to initialize, add geometry, modify it and store it to Disk.
I started with one of sample Applications provided with the OCC package and converted it to my personal DLL, wich is loaded at runtime.
It took me about 2 weeks for the first working sample.