Commit Graph

444 Commits

Author SHA1 Message Date
eda79b40e9 Merge branch 'master' into OCP 2020-03-22 17:53:01 +01:00
228ca55786 Renamed tangentArcEndpoint to tangentArc 2020-03-19 21:21:01 +10:30
ae305501e1 Merge branch 'master' into marcus7070/tangentArc 2020-03-19 08:46:22 +01:00
ed21b9fc9c Use wrapped i.s.o. _wrapped 2020-03-19 08:43:37 +01:00
a499a4b5d3 Ellipse (#265)
* added ellipse

* removed unused math imports

* added method ellipseArc and adapted method ellipse to circle

* introduced sense for ellipse building

* adapted ellipse test cases

* exclude vscode config folder

* use gp_Ax2(p, zdir, xdir) for ellipse building

* ran black against the changes

* Fix docstring of makeEllipse

Co-Authored-By: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>

* Fix return value in docstring of makeEllips

Co-Authored-By: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>

* Formatting fix

* Increase test coverage

* Formatting fixes

* Add test for makeEllipse

* Test fix

* Formatting + typo fix

Co-authored-by: Bernhard <bwalter42@gmail.com>
Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>
2020-03-15 14:04:48 +01:00
b89bc44f86 Added Workplane.tangentArcToPoint, occ_impl.shapes.Edge.makeTangentArc 2020-03-14 19:44:11 +10:30
b9d3a1c187 Spline tangnet fix for offset workplane (#293)
Fixes #292
2020-03-06 22:18:31 +01:00
cd66589e4e Implementation of BRepOffsetAPI_MakeFilling (#253) 2020-03-05 21:43:16 +01:00
3d9041e98b Fix plane rotation method (again...) (#243) 2020-02-24 20:45:36 +01:00
793672d466 Use optimal bbox 2020-02-15 22:15:49 +01:00
0063023459 Text fix for OCCT7.4 2020-02-14 07:24:33 +01:00
5af879f640 OCCT 7.4 related fixes 2020-02-10 20:49:14 +01:00
45cfa16813 Merge pull request #252 from marcus7070/marcus7070/tag-and-load
Tagging objects in the chain
2020-02-09 17:48:04 -05:00
b2c1094b82 removed CQ.firstPoint from CQ.__init__ 2020-01-23 21:16:44 +10:30
fa3277e6a0 Renamed getTagged to _getTagged 2020-01-23 21:06:17 +10:30
b54f03abf5 Renamed copyWorkplaneFromTagged to workplaneFromTagged 2020-01-23 21:06:17 +10:30
6d98e29b15 Simplify selector code 2020-01-23 21:06:17 +10:30
b38f01711c Added the ability to select from a tagged object 2020-01-23 21:06:17 +10:30
d1ced40c4e Added tags 2020-01-23 21:02:35 +10:30
113a48a952 Updated the __version__ variable to fix CQ-editor's update mechanism. 2020-01-21 07:18:55 -05:00
102c16c14e Add Black formatting check to CI (#255)
* Add Black formatting check to CI
* Add some documentation for code contributors
* Use uncompromised code formatting
2020-01-20 20:52:12 +01:00
8d4ff71c77 Preliminary exporters fix 2020-01-12 19:52:23 +01:00
4ce8fe0a7a Fixed makeText 2020-01-12 13:37:10 +01:00
8046947398 makeSpline fix 2020-01-09 21:23:32 +01:00
d41cadaee3 Fixed SVG export 2020-01-09 21:20:44 +01:00
1e1fec6c6d Use OX_s() iso OX() 2020-01-04 14:15:33 +01:00
98fa16a0fd Initial OCP support 2020-01-04 13:54:58 +01:00
6196729384 Update shapes.py 2019-12-24 16:31:19 +01:00
a1df7a4de9 Merge pull request #2 from CadQuery/master
update
2019-12-24 10:45:49 +01:00
fd1e959aa7 Update shapes.py 2019-12-15 18:31:40 +01:00
e9924ba6e4 Fix plane rotation method
The vector defining the rotation is expected to be in local coordinates
and therefore needs to be converted to world coordinates before applying
the rotation.
2019-12-15 17:26:40 +01:00
b19b8ff541 Update shapes.py 2019-12-15 09:38:56 +01:00
23f2ba679f Update shapes.py 2019-12-15 09:26:59 +01:00
46c2375819 Update shapes.py 2019-12-15 09:12:06 +01:00
883db3cdf2 Update shapes.py
BRepBuilderAPI_MakeWire::Add(const TopTools_ListOfShape & L) offers the option to accept a list of shapes directly as argument:
"Adds the edges of <L> to the current wire. The edges are not to be consecutive. But they are to be all connected geometrically or topologically. If some of them are not connected the Status give DisconnectedWire but the "Maker" is Done() and you can get the partial result. (ie connected to the first edgeof the list <L>)"
Following this I modified the assembledEdges in shapes.py to be able to provide a list of unordered edges to BRepBuilderAPI_MakeWire. This way, when the list of edges is generated by another function, there is not need to make them consecutive.
2019-12-13 08:22:59 +01:00
2732acf6b8 Corrected an error in the Workplane.center docstring example. 2019-12-11 13:49:16 -05:00
03c45c72b2 Simple docstring addition to note acceptance of vector or tuple. 2019-12-02 05:55:37 -05:00
6beb5d5914 Fixed makeWedge function and made wedge primitive handling consistent. 2019-12-01 15:26:17 -05:00
0d5f092476 Fixing Matrix and Shape to correctly support anisotropic scaling 2019-11-30 17:09:36 +01:00
c378d496ba Rename slot() to slot2D() 2019-09-14 00:18:50 -05:00
b80ab618a1 slot(): Set angle default to zero 2019-09-09 00:44:50 -05:00
fe01b0f580 remove cast of pnt to world coords 2019-09-06 15:16:20 -05:00
1ef22b7798 Use + operator for vector addition in slot() 2019-09-06 14:57:40 -05:00
48cd1a78f2 Add rounded slot function 2019-09-01 18:40:09 -05:00
c00a01b3c7 solid.loft: added checking for at least 2 wires to prevent segmentation fault. see issue #161. now a ValueError is raised 2019-08-08 23:26:24 +02:00
bcf7141197 Fixed bug where telerance parameter of BoundingBox had of effect
The tolerance parameter of the BoundingBox method of shape had no effect. Fixed this by passing the tolerance to the _fromTopoDS call. Changed the tolerance default value from 0.1 to None so that the global TOL is used by default.  This allows the user to set the global TOL value as outlined in #74.  The CenterofBoundbox method incorrectly passed a shape to the BoundingBox method, which is the position for the tolerance paramter. This has been fixed.  The _fromTopoDS method hard coded the global variable TOL in it's call to BRepMesh_IncrementalMesh. This has been updated to use the user supplied tolerance if one has been provided. Added test coverage for the tolerance parameter of the BoundingBox method.
2019-07-29 10:20:55 -05:00
835725c4cc findType fix 2019-07-06 22:04:20 +02:00
98db1e7d21 Merge pull request #156 from CadQuery/adam-urbanczyk-polyline
Change default polyline and spline behavior
2019-06-25 21:44:33 +02:00
d7fe2788ff Added tests for includeCurrent 2019-06-25 07:08:54 +02:00
ba1061df7d Update to include points on face
Now correctly returns True for points on boundary surface of solid. Updated tests to verify this. Remove check that isInside() is run on solid since it is now part of Mixin3D which implies that self is a solid. Improved doc string.
2019-06-24 13:56:13 -05:00