Skip to content
Open

OCP 7.9 #1946

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7cf644e
7.9 related fixes
adam-urbanczyk Jul 14, 2025
0006f90
Update specs
adam-urbanczyk Jul 15, 2025
1270fb6
Merge branch 'master' into ocp79
adam-urbanczyk Dec 2, 2025
1bf350a
Update ocp version to 7.9.2
adam-urbanczyk Dec 2, 2025
3b05d8e
Specify channel
adam-urbanczyk Dec 2, 2025
da5f1ad
Another try
adam-urbanczyk Dec 2, 2025
119ee05
Try with conda too
adam-urbanczyk Dec 2, 2025
a8aafb5
Remove vtk-qt
adam-urbanczyk Dec 3, 2025
ba6d67d
Disable mypy for now
adam-urbanczyk Dec 3, 2025
9abdd71
Enable mypy
adam-urbanczyk Dec 13, 2025
37f859b
Mypy fix
adam-urbanczyk Dec 18, 2025
e093f17
Merge branch 'ocp79' of https://github.com/CadQuery/cadquery into ocp79
adam-urbanczyk Dec 18, 2025
9af0153
Use conda forge build
adam-urbanczyk Dec 20, 2025
5702830
Use conda forge
adam-urbanczyk Dec 20, 2025
a674df8
Remove vtk
adam-urbanczyk Dec 21, 2025
cb9e5bc
Update ocp version to 7.9.3
adam-urbanczyk Dec 28, 2025
634eb37
Update ocp version to 7.9.3
adam-urbanczyk Dec 28, 2025
fc85e1d
Python 3.14 fixes
adam-urbanczyk Dec 28, 2025
9b4ce19
Add an explicit wildcard to ocp
adam-urbanczyk Dec 28, 2025
b6a3dcb
Fix CQGI
adam-urbanczyk Jan 17, 2026
08cafbd
Merge branch 'master' into ocp79
adam-urbanczyk Feb 6, 2026
4bd36ce
Check with 7.9.3.1
adam-urbanczyk Feb 12, 2026
243ea34
Merge branch 'master' into ocp79
adam-urbanczyk Feb 12, 2026
78bf992
Wrong spec, reverting
adam-urbanczyk Feb 12, 2026
0c7f4e7
Try with 7.9.3.1 in regular CI
adam-urbanczyk Feb 12, 2026
c2c6057
Switch back to regular package
adam-urbanczyk Feb 13, 2026
7272f2d
Update cadquery-ocp version
adam-urbanczyk Feb 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 17 additions & 19 deletions cadquery/occ_impl/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,14 @@
inverse_shape_LUT = {v: k for k, v in shape_LUT.items()}

downcast_LUT = {
ta.TopAbs_VERTEX: TopoDS.Vertex_s,
ta.TopAbs_EDGE: TopoDS.Edge_s,
ta.TopAbs_WIRE: TopoDS.Wire_s,
ta.TopAbs_FACE: TopoDS.Face_s,
ta.TopAbs_SHELL: TopoDS.Shell_s,
ta.TopAbs_SOLID: TopoDS.Solid_s,
ta.TopAbs_COMPSOLID: TopoDS.CompSolid_s,
ta.TopAbs_COMPOUND: TopoDS.Compound_s,
ta.TopAbs_VERTEX: TopoDS.Vertex,
ta.TopAbs_EDGE: TopoDS.Edge,
ta.TopAbs_WIRE: TopoDS.Wire,
ta.TopAbs_FACE: TopoDS.Face,
ta.TopAbs_SHELL: TopoDS.Shell,
ta.TopAbs_SOLID: TopoDS.Solid,
ta.TopAbs_COMPSOLID: TopoDS.CompSolid,
ta.TopAbs_COMPOUND: TopoDS.Compound,
}

geom_LUT = {
Expand Down Expand Up @@ -895,7 +895,7 @@ def Edges(self) -> List["Edge"]:
return [
Edge(i)
for i in self._entities("Edge")
if not BRep_Tool.Degenerated_s(TopoDS.Edge_s(i))
if not BRep_Tool.Degenerated_s(TopoDS.Edge(i))
]

def Compounds(self) -> List["Compound"]:
Expand Down Expand Up @@ -2902,8 +2902,8 @@ def stitch(self, other: "Wire") -> "Wire":
"""Attempt to stitch wires"""

wire_builder = BRepBuilderAPI_MakeWire()
wire_builder.Add(TopoDS.Wire_s(self.wrapped))
wire_builder.Add(TopoDS.Wire_s(other.wrapped))
wire_builder.Add(TopoDS.Wire(self.wrapped))
wire_builder.Add(TopoDS.Wire(other.wrapped))
wire_builder.Build()

return self.__class__(wire_builder.Wire())
Expand Down Expand Up @@ -3398,7 +3398,7 @@ def makeFromWires(cls, outerWire: Wire, innerWires: List[Wire] = []) -> "Face":
# fix outer wire
sf_s = ShapeFix_Shape(outerWire.wrapped)
sf_s.Perform()
wo = TopoDS.Wire_s(sf_s.Shape())
wo = TopoDS.Wire(sf_s.Shape())

face_builder = BRepBuilderAPI_MakeFace(wo, True)

Expand Down Expand Up @@ -3490,7 +3490,7 @@ def chamfer2D(self, d: float, vertices: Iterable[Vertex]) -> "Face":
e1, e2 = edges

chamfer_builder.AddChamfer(
TopoDS.Edge_s(e1.wrapped), TopoDS.Edge_s(e2.wrapped), d, d
tcast(TopoDS_Edge, e1.wrapped), tcast(TopoDS_Edge, e2.wrapped), d, d
)

chamfer_builder.Build()
Expand Down Expand Up @@ -3612,7 +3612,7 @@ def trim(self, outer: Wire, *inner: Wire) -> Self:
bldr = BRepBuilderAPI_MakeFace(self._geomAdaptor(), outer.wrapped)

for w in inner:
bldr.Add(TopoDS.Wire_s(w.wrapped))
bldr.Add(TopoDS.Wire(w.wrapped))

return self.__class__(bldr.Face()).fix()

Expand Down Expand Up @@ -3679,9 +3679,7 @@ def addHole(self, *inner: Wire | Edge) -> Self:
bldr = BRepBuilderAPI_MakeFace(self.wrapped)

for w in inner:
bldr.Add(
TopoDS.Wire_s(w.wrapped if isinstance(w, Wire) else wire(w).wrapped)
)
bldr.Add(TopoDS.Wire(w.wrapped if isinstance(w, Wire) else wire(w).wrapped))

return self.__class__(bldr.Face()).fix()

Expand Down Expand Up @@ -3763,7 +3761,7 @@ def chamfer(
for e in nativeEdges:
face = edge_face_map.FindFromKey(e).First()
chamfer_builder.Add(
d1, d2, e, TopoDS.Face_s(face)
d1, d2, e, TopoDS.Face(face)
) # NB: edge_face_map return a generic TopoDS_Shape
return self.__class__(chamfer_builder.Shape())

Expand Down Expand Up @@ -6107,7 +6105,7 @@ def cap(

for e in _get_edges(s):
f = _get_one(e.ancestors(ctx, "Face"), "Face")
builder.Add(e.wrapped, f.wrapped, GeomAbs_G2, True)
builder.Add(e.wrapped, f.wrapped, GeomAbs_Shape.GeomAbs_G1, True)

for c in constraints:
if isinstance(c, Shape):
Expand Down
3 changes: 1 addition & 2 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ requirements:
- setuptools
run:
- python >=3.10
- ocp=7.8.1
- vtk=*=qt*
- ocp=7.9.3.1
- pyparsing >=3.0.0
- ezdxf>=1.3.0
- ipython
Expand Down
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ channels:
dependencies:
- python>=3.10
- ipython
- ocp=7.8.1
- vtk=*=qt*
# - cadquery/label/dev::ocp=x.x.x for dev
- ocp=7.9.3.1
- pyparsing>=3.0.0
- sphinx=9.1.0
# - sphinx_rtd_theme=3.1.0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# Only include the installation dependencies if we are not running on RTD or AppVeyor or in a conda env
if not is_rtd and not is_appveyor and not is_azure and not is_conda:
reqs = [
"cadquery-ocp>=7.8.1,<7.9",
"cadquery-ocp>=7.9.3.1,<8.0",
"ezdxf>=1.3.0",
"multimethod>=1.11,<2.0",
"nlopt>=2.9.0,<3.0",
Expand Down
Loading