Commit Graph

22 Commits

Author SHA1 Message Date
6a440b63af Handle constraints from infinite faces (#797)
* Face.toPln method added

* solver: set xtol_abs

* Constraint: handle infinite faces

Infinite faces have their center at 1e99, which was causing overflows in
the solver and also was not what the user intended when creating the
Shape. They are now converted to the expected values.
2021-07-06 16:47:36 +09:30
AU
3cb72378b8 Assy solver fix (#806)
* Use nlopt in place of scipy.optimize 

* report the results of optimization

* Deps update and OCP 7.5 -> 7.5.1

* Rewrite cost and gradient

* Check solve results
2021-07-03 13:29:10 +09:30
e00ac83f98 Implement importBrep and vtkPolyData export (#735)
* Implement importBrep

* Implement rw to/from stream

* Implement toVtkPolyData

* Implemented VTP export

* Added normals calculation

* use VTK for rendering in jupyter

* Added orientation marker

* Assy rendering in notebooks

* Implement export to vtkjs

* Store the env in the cqgi result

* VTK-based cq directive

* Support show_object and assy

* assy vrml export via vtk

* Use vtk in the docs

* Add slot dxf file

* Add vtk.js to the static files

* Use single renderer

* Ignore cq_directive code coverage

* Ignore missing docutils stubs

* Implement select

* Disable interaction dynamically

* Mention VTP in the docs

* Add path to the test reqs
2021-06-22 17:36:50 +09:30
0f249dfec8 Assembly toCompound (#726)
* Added Assembly.toCompound

* spelling

Co-authored-by: Jeremy Wright <wrightjmf@gmail.com>

* Add annotation + minor updates

* Better annotations for locate and move

Co-authored-by: Jeremy Wright <wrightjmf@gmail.com>
Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>
2021-04-19 19:50:31 +02:00
b0a8cb247b PointInPlane constraint (#712)
* Allow Plane init with no specific x dir and add Plane.toPln

* PointInPlane constraint
2021-04-13 17:12:14 +09:30
179b964514 Update tests/test_assembly.py
Co-authored-by: Marcus Boyd <mwb@geosol.com.au>
2021-03-29 08:08:28 +02:00
82136e4ee7 Another black fix 2021-03-28 12:48:35 +02:00
58a61812c6 Black fix 2021-03-28 12:22:33 +02:00
c72f0838e0 Check if complex selectors works with assy 2021-03-28 12:07:08 +02:00
ccc1983c86 Added empty solve test 2021-01-19 08:12:50 +01:00
82a043a0be Assembly hierarchy - 2nd take (#545)
* Reworked nested assy querying

* Support subclassing

* Added docstring
2020-12-18 08:40:24 +01:00
b22436c59e Implement tag based constraint definition (#514)
* Refactor tags

* Use pyparsing for query parsing and implement tags

* Black and mypy fixes

* Allow "_" in names and tags

* Added tests

* Fixed constrain with tag test

* Better docstring for _query

* Typo fix
2020-11-24 17:46:21 +01:00
8f62fc54dd Review fixes 2020-10-01 08:33:03 +02:00
2625e21a19 Tighter tolerances on the solve 2020-09-26 20:45:22 +02:00
a24d6bf502 Relaxed test criteria 2020-09-25 18:43:05 +02:00
b6484959ed Better assy.solve() test 2020-09-25 08:57:24 +02:00
c3432b6131 Added tests for constrain and solve 2020-09-13 20:38:01 +02:00
60a664874f Color implementation for Assembly 2020-09-06 17:45:32 +02:00
fbf6a54a0e Fixed format mismatch 2020-09-04 11:53:26 +02:00
58899208e0 Test assembly.save 2020-09-04 11:48:28 +02:00
40a214e467 Better interpretable assy test 2020-09-04 10:17:53 +02:00
46f90110ef Added tests 2020-09-03 21:54:19 +02:00