tpaviot / pythonocc-core

Python package for 3D geometry CAD/BIM/CAM
GNU Lesser General Public License v3.0
1.33k stars 374 forks source link

How do BREP files save colors #903

Closed fastkits closed 3 years ago

fastkits commented 3 years ago

How do BREP files save colors

rainman110 commented 3 years ago

It's not possible unfortunately. You have to use the Step format.

fastkits commented 3 years ago

ok, thanks, One more question

What technology do I want to do assembly with, or what key PythonOCc classes

------------------ 原始邮件 ------------------ 发件人: "Martin Siggel"<notifications@github.com>; 发送时间: 2020年10月27日(星期二) 晚上7:41 收件人: "tpaviot/pythonocc-core"<pythonocc-core@noreply.github.com>; 抄送: "Y1ren"<942290627@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [tpaviot/pythonocc-core] How do BREP files save colors (#903)

It's not possible unfortunately. You have to use the Step format.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

adam-urbanczyk commented 3 years ago

You are interested in the following classes: TDocStd_Document, XCAFDoc_DocumentTool.ShapeTool, XCAFDoc_DocumentTool.ColorTool

Note that you can also save with colors in the native OCCT formats (e.g. XmlOcaf).