Closed ze897c closed 1 year ago
This example passes an instance of type OCP.gp.gp_Vec
.
VectorLike
instead expects cadquery.occ_impl.geom.Vector
(or tuples).
See https://github.com/CadQuery/cadquery/blob/master/cadquery/occ_impl/geom.py#L28
You could wrap the OCP type with cq.Vector:
rex = cq.Solid.extrudeLinear(
self.punch_out_face,
cq.Vector(self.punch_out_prism_vector),
)
This example passes an instance of type
OCP.gp.gp_Vec
.
VectorLike
instead expectscadquery.occ_impl.geom.Vector
(or tuples).See https://github.com/CadQuery/cadquery/blob/master/cadquery/occ_impl/geom.py#L28
You could wrap the OCP type with cq.Vector:
rex = cq.Solid.extrudeLinear( self.punch_out_face, cq.Vector(self.punch_out_prism_vector), )
Aha, thanks @lorenzncode. I, clearly, didn't catch that.
cadquery.Solid.extrudeLinear
dispatches toinstead of
...but not always.
To Reproduce
Not minimal, sorry, but this cause the behavior for me:
stupid_extrude_wrap
is my work-around, and fixes behavior for me.Thanks folks.
Backtrace
Environment
OS: OSX
Was CadQuery installed using Conda?: Output of
conda list
from your active Conda environment:Yep:
conda
installedUsing: pythonn3.10
interpreter