简体   繁体   English

Delphi中开放级联的接口

[英]Interface for Open Cascade in Delphi

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. 我试图找到一种方法,在我们的其中一种用Delphi编写的软件中使用Open Cascade (www.opencascade.org)-3D建模技术。

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. 我确实设法找到了一个支持Open Cascade的ActiveX,但是尝试它时,我不喜欢渲染图像的视觉质量。 The ActiveX lib can be found here (www.ewcad.com). 可以在这里 (www.ewcad.com)找到ActiveX库。

I am not able to locate any VCL for this nor can I find any import declarations for this on internet. 我无法为此找到任何VCL,也无法在互联网上找到任何此的进口申报单。

What makes you think that the visual output quality would be higher if you had a native VCL wrapper? 是什么让您认为如果使用本地VCL包装器,视觉输出质量会更高? The underlying library is C++, not C, so import libraries are not going to be enough. 基础库是C ++,而不是C,因此导入库还不够。 A "C++ class to VCL wrapper" interface for such a large project would be years of work. 对于如此大的项目,“ C ++类到VCL包装器”接口将需要花费很多年。

Have you looked at GLScene? 你看过GLScene吗? http://glscene.sourceforge.net/wikka/HomePage http://glscene.sourceforge.net/wikka/HomePage

W w ^

I am using OCC from Delphi through a DLL exporting ANSI C functions. 我正在通过导出ANSI C函数的DLL使用来自Delphi的OCC。 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. 不需要导出所有超过12000个对象,只需导出一组包装函数即可初始化,添加几何体,对其进行修改并将其存储到磁盘。

I started with one of sample Applications provided with the OCC package and converted it to my personal DLL, wich is loaded at runtime. 我先从OCC软件包提供的示例应用程序之一开始,然后将其转换为我的个人DLL,并在运行时加载它。

It took me about 2 weeks for the first working sample. 第一个工作样本花了我大约2周的时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM