OCP 8.0.1: BRepCheck_Result.Status() and Bnd_Box.Get() return unbound types
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C++
- Estrellas
- 207
- Forks
- 51
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CadQuery/OCP
-
Generation steps fails when OPENGL_INCLUDE_DIRS is a listPosiblemente ocupada @adam-urbanczyk la tomó hace 78 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
-
Python 3.14t buildAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Todos los issues de CadQuery/OCP
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
swiftlang/indexstore-db#306 ·
-
Python PointcloudAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ArduCAM/Arducam_tof_camera#125 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
maplibre/maplibre-native#4822 ·
Los mantenedores suelen responder en 1 día
-
bug-unconfirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día