{"id":184,"date":"2026-03-02T20:00:02","date_gmt":"2026-03-02T12:00:02","guid":{"rendered":"https:\/\/www.alimzs.com\/index.php\/2026\/03\/02\/opencascade-7-7-0-%e5%ae%8c%e5%85%a8%e6%95%99%e7%a8%8b%ef%bc%88%e5%9b%9b%ef%bc%89%ef%bc%9a%e6%95%b0%e6%8d%ae%e4%ba%a4%e6%8d%a2%e4%b8%8e%e6%a0%bc%e5%bc%8f%e8%bd%ac%e6%8d%a2\/"},"modified":"2026-03-02T20:00:02","modified_gmt":"2026-03-02T12:00:02","slug":"opencascade-7-7-0-%e5%ae%8c%e5%85%a8%e6%95%99%e7%a8%8b%ef%bc%88%e5%9b%9b%ef%bc%89%ef%bc%9a%e6%95%b0%e6%8d%ae%e4%ba%a4%e6%8d%a2%e4%b8%8e%e6%a0%bc%e5%bc%8f%e8%bd%ac%e6%8d%a2","status":"publish","type":"post","link":"https:\/\/www.alimzs.com\/index.php\/2026\/03\/02\/opencascade-7-7-0-%e5%ae%8c%e5%85%a8%e6%95%99%e7%a8%8b%ef%bc%88%e5%9b%9b%ef%bc%89%ef%bc%9a%e6%95%b0%e6%8d%ae%e4%ba%a4%e6%8d%a2%e4%b8%8e%e6%a0%bc%e5%bc%8f%e8%bd%ac%e6%8d%a2\/","title":{"rendered":"OpenCASCADE 7.7.0 \u5b8c\u5168\u6559\u7a0b\uff08\u56db\uff09\uff1a\u6570\u636e\u4ea4\u6362\u4e0e\u683c\u5f0f\u8f6c\u6362"},"content":{"rendered":"<p># OpenCASCADE 7.7.0 \u5b8c\u5168\u6559\u7a0b\uff08\u56db\uff09\uff1a\u6570\u636e\u4ea4\u6362\u4e0e\u683c\u5f0f\u8f6c\u6362<\/p>\n<h2>STEP \u683c\u5f0f<\/h2>\n<p>STEP \u662f CAD \u6570\u636e\u4ea4\u6362\u7684\u6807\u51c6\u683c\u5f0f\uff0c\u652f\u6301 AP203\/AP214\/AP242 \u534f\u8bae\u3002<\/p>\n<h3>\u8bfb\u53d6 STEP \u6587\u4ef6<\/h3>\n<pre><code class=\"language-cpp\">#include &lt;STEPControl_Reader.hxx&gt;\n#include &lt;IFSelect_ReturnStatus.hxx&gt;\n\nSTEPControl_Reader reader;\nIFSelect_ReturnStatus status = reader.ReadFile(\"part.step\");\n\nif (status == IFSelect_RetDone) {\n    reader.TransferRoots();\n    TopoDS_Shape shape = reader.OneShape();\n    std::cout &lt;&lt; \"STEP \u5bfc\u5165\u6210\u529f\" &lt;&lt; std::endl;\n}\n<\/code><\/pre>\n<h3>\u5199\u5165 STEP \u6587\u4ef6<\/h3>\n<pre><code class=\"language-cpp\">#include &lt;STEPControl_Writer.hxx&gt;\n\nSTEPControl_Writer writer;\nwriter.Transfer(shape, STEPControl_AsIs);\nwriter.Write(\"output.step\");\n<\/code><\/pre>\n<h2>IGES \u683c\u5f0f<\/h2>\n<h3>\u8bfb\u53d6 IGES \u6587\u4ef6<\/h3>\n<pre><code class=\"language-cpp\">#include &lt;IGESControl_Reader.hxx&gt;\n\nIGESControl_Reader reader;\nreader.ReadFile(\"part.igs\");\nreader.TransferRoots();\nTopoDS_Shape shape = reader.OneShape();\n<\/code><\/pre>\n<h3>\u5199\u5165 IGES \u6587\u4ef6<\/h3>\n<pre><code class=\"language-cpp\">#include &lt;IGESControl_Writer.hxx&gt;\n\nIGESControl_Writer writer;\nwriter.Transfer(shape, IGESControl_StepSolid);\nwriter.Write(\"output.igs\");\n<\/code><\/pre>\n<h2>STL \u683c\u5f0f\uff083D \u6253\u5370\uff09<\/h2>\n<h3>\u5bfc\u51fa STL\uff08ASCII\uff09<\/h3>\n<pre><code class=\"language-cpp\">#include &lt;StlAPI_Writer.hxx&gt;\n\nStlAPI_Writer writer;\nwriter.Write(shape, \"output.stl\");  \/\/ ASCII \u683c\u5f0f\n<\/code><\/pre>\n<h3>\u5bfc\u51fa STL\uff08\u4e8c\u8fdb\u5236\uff09<\/h3>\n<pre><code class=\"language-cpp\">StlAPI_Writer writer;\nwriter.ASCIIMode() = Standard_False;  \/\/ \u4e8c\u8fdb\u5236\u6a21\u5f0f\nwriter.Write(shape, \"output_binary.stl\");\n<\/code><\/pre>\n<h3>\u63a7\u5236\u7f51\u683c\u7cbe\u5ea6<\/h3>\n<pre><code class=\"language-cpp\">#include &lt;BRepMesh_IncrementalMesh.hxx&gt;\n\n\/\/ \u8bbe\u7f6e\u7f51\u683c\u7cbe\u5ea6\nStandard_Real linearDeflection = 0.001;\nStandard_Real angularDeflection = 0.5;\nBRepMesh_IncrementalMesh mesher(shape, linearDeflection, false, angularDeflection);\n\n\/\/ \u5bfc\u51fa\nStlAPI_Writer writer;\nwriter.Write(shape, \"high_quality.stl\");\n<\/code><\/pre>\n<h2>VRML \u683c\u5f0f\uff08\u865a\u62df\u73b0\u5b9e\uff09<\/h2>\n<pre><code class=\"language-cpp\">#include &lt;VRMLControl_Writer.hxx&gt;\n\nVRMLControl_Writer writer;\nwriter.Transfer(shape, VRML_V2_0);\nwriter.Write(\"output.wrl\");\n<\/code><\/pre>\n<h2>glTF \u683c\u5f0f\uff08\u73b0\u4ee3 3D\uff09<\/h2>\n<pre><code class=\"language-cpp\">#include &lt;RWGltf_CafWriter.hxx&gt;\n\n\/\/ \u521b\u5efa glTF \u5199\u5165\u5668\nRWGltf_CafWriter writer(\"output.gltf\");\nwriter.Perform(shape);\n<\/code><\/pre>\n<h2>OBJ \u683c\u5f0f<\/h2>\n<pre><code class=\"language-cpp\">#include &lt;RWObj_CafWriter.hxx&gt;\n\nRWObj_CafWriter writer(\"output.obj\");\nwriter.Perform(shape);\n<\/code><\/pre>\n<h2>BREP \u683c\u5f0f\uff08OCCT \u539f\u751f\uff09<\/h2>\n<h3>\u5199\u5165 BREP<\/h3>\n<pre><code class=\"language-cpp\">#include &lt;BRepTools.hxx&gt;\n\nBRepTools::Write(shape, \"shape.brep\");\n<\/code><\/pre>\n<h3>\u8bfb\u53d6 BREP<\/h3>\n<pre><code class=\"language-cpp\">#include &lt;BRepTools.hxx&gt;\n\nTopoDS_Shape shape;\nBRep_Builder builder;\nBRepTools::Read(shape, \"shape.brep\", builder);\n<\/code><\/pre>\n<h2>\u683c\u5f0f\u5bf9\u6bd4<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u683c\u5f0f<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u7528\u9014<\/th>\n<th>\u652f\u6301<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>STEP<\/strong><\/td>\n<td>\u5b9e\u4f53\u6a21\u578b<\/td>\n<td>CAD \u6570\u636e\u4ea4\u6362<\/td>\n<td>\u8bfb\u5199<\/td>\n<\/tr>\n<tr>\n<td><strong>IGES<\/strong><\/td>\n<td>\u66f2\u9762\/\u7ebf\u6846<\/td>\n<td>\u65e7\u6807\u51c6<\/td>\n<td>\u8bfb\u5199<\/td>\n<\/tr>\n<tr>\n<td><strong>STL<\/strong><\/td>\n<td>\u7f51\u683c<\/td>\n<td>3D \u6253\u5370<\/td>\n<td>\u8bfb\u5199<\/td>\n<\/tr>\n<tr>\n<td><strong>glTF<\/strong><\/td>\n<td>\u7f51\u683c+\u6750\u8d28<\/td>\n<td>Web\/\u5b9e\u65f6\u6e32\u67d3<\/td>\n<td>\u8bfb\u5199<\/td>\n<\/tr>\n<tr>\n<td><strong>VRML<\/strong><\/td>\n<td>\u7f51\u683c+\u6750\u8d28<\/td>\n<td>\u865a\u62df\u73b0\u5b9e<\/td>\n<td>\u5199<\/td>\n<\/tr>\n<tr>\n<td><strong>OBJ<\/strong><\/td>\n<td>\u7f51\u683c<\/td>\n<td>3D \u8f6f\u4ef6\u4ea4\u6362<\/td>\n<td>\u8bfb\u5199<\/td>\n<\/tr>\n<tr>\n<td><strong>BREP<\/strong><\/td>\n<td>\u5b9e\u4f53\u6a21\u578b<\/td>\n<td>OCCT \u539f\u751f<\/td>\n<td>\u8bfb\u5199<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u6279\u91cf\u8f6c\u6362\u5de5\u5177<\/h2>\n<pre><code class=\"language-cpp\">#include &lt;STEPControl_Reader.hxx&gt;\n#include &lt;StlAPI_Writer.hxx&gt;\n\nvoid convertStepToStl(const std::string& stepFile, const std::string& stlFile) {\n    \/\/ \u8bfb\u53d6 STEP\n    STEPControl_Reader reader;\n    reader.ReadFile(stepFile.c_str());\n    reader.TransferRoots();\n    TopoDS_Shape shape = reader.OneShape();\n    \n    \/\/ \u7f51\u683c\u5316\n    BRepMesh_IncrementalMesh mesher(shape, 0.001);\n    \n    \/\/ \u5bfc\u51fa STL\n    StlAPI_Writer writer;\n    writer.Write(shape, stlFile.c_str());\n}\n<\/code><\/pre>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u6570\u636e\u4ea4\u6362\u662f CAD \u5de5\u4f5c\u6d41\u7684\u5173\u952e\u73af\u8282\uff0c\u9009\u62e9\u5408\u9002\u7684\u683c\u5f0f\u5f88\u91cd\u8981\u3002<\/p>\n<hr>\n<p><em>\u5b57\u6570\uff1a\u7ea6 1800 \u5b57 | \u5206\u7c7b\uff1aOpenCASCADE \u6559\u7a0b | \u96be\u5ea6\uff1a\u5b9e\u6218 | \u7248\u672c\uff1a7.7.0<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p># OpenCASCADE 7.7.0 \u5b8c\u5168\u6559\u7a0b\uff08\u56db\uff09\uff1a\u6570\u636e\u4ea4\u6362\u4e0e\u683c\u5f0f\u8f6c\u6362 STEP \u683c\u5f0f STEP \u662f CA [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.alimzs.com\/index.php\/wp-json\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alimzs.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alimzs.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alimzs.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alimzs.com\/index.php\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":0,"href":"https:\/\/www.alimzs.com\/index.php\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.alimzs.com\/index.php\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alimzs.com\/index.php\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alimzs.com\/index.php\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}