Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

OCP 8.0.1: BRepCheck_Result.Status() and Bnd_Box.Get() return unbound types

オープン
#232 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, python
領域
backend

調査の方向性

Start by tracing how the generator binds OCCT return types, especially the collection instantiation gap referenced in #217 and nested structs such as Bnd_Box::Limits. Reproduce the failures with the supplied Python example on OCP 8.0.1, then check both methods after the binding changes. Done when Status() returns its status list and Get() returns the six bounds values.

索引モデルが issue の本文から書いたものです。

説明

Two OCCT return types have no binding in OCP 8.0.1, so the methods that return them raise instead of returning. Both worked on 7.9.3.1, where they came back as BRepCheck_ListOfStatus and a 6-tuple.

Method OCCT 8 return type OCP 7.9.3.1 OCP 8.0.1.1
BRepCheck_Result.Status() NCollection_List<BRepCheck_Status> BRepCheck_ListOfStatus TypeError
Bnd_Box.Get() Bnd_Box::Limits (xmin, ymin, zmin, xmax, ymax, zmax) TypeError
from OCP.BRepPrimAPI import BRepPrimAPI_MakeBox
from OCP.BRepCheck import BRepCheck_Analyzer
from OCP.Bnd import Bnd_Box
from OCP.BRepBndLib import BRepBndLib
from OCP.TopExp import TopExp_Explorer
from OCP.TopAbs import TopAbs_FACE

box = BRepPrimAPI_MakeBox(10, 20, 30).Shape()
face = TopExp_Explorer(box, TopAbs_FACE).Current()
BRepCheck_Analyzer(box).Result(face).Status()

bb = Bnd_Box()
BRepBndLib.Add_s(box, bb)
bb.Get()

On cadquery-ocp-novtk==8.0.1.1.0 (macOS arm64, Python 3.13):

TypeError: Unable to convert function return value to a Python type! The signature was
	(self: OCP.OCP.BRepCheck.BRepCheck_Result) -> NCollection_List<BRepCheck_Status>
TypeError: Unable to convert function return value to a Python type! The signature was
	(self: OCP.OCP.Bnd.Bnd_Box) -> Bnd_Box::Limits

OCP.collections has no list of BRepCheck_Status (the only *Status instantiation is DataMap_AIS_InteractiveObject_AIS_GlobalStatus), and OCP.Bnd has no Limits. These look like the same gap as #217 (an instantiation the generator didn't pick up) and a nested struct that isn't exposed.

The first one costs the most: Status() is the only way to read why BRepCheck_Analyzer rejects a sub-shape, so on 8.0 a checker can say "invalid" but not "self-intersecting wire" or "unclosed shell". The workaround we use in text-to-cad re-runs the per-kind checks (BRepCheck_Shell.Closed()/.Orientation(), BRepCheck_Face.IntersectWires()/.ClassifyWires(), BRepCheck_Wire.Closed()), which return a single BRepCheck_Status and still bind, but it misses whatever those don't cover. For Get(), CornerMin()/CornerMax() give the same numbers.

主要言語
C++
スター
207
フォーク
51
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CadQuery/OCP のほかの issue

CadQuery/OCP の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。