Commit Graph
18 Commits
Author SHA1 Message Date
Geoff deRosenroll a97c666358 2d-operations via Clipper2 (#341)
* WIP Clipper2 wrapper for 2d subsystem

* Working example in clippoly_test

* Add clean_ property to clippoly

* Square center=false by default

* Square defaults to center=false

* Shorten union example

* + simplification and minkowski functions

* + Circle and note on Minkowski

* + Offset (InflatePaths)

* Clippoly -> CrossSection renaming

* Switch from NonZero to Positive fill rule

* -(minkowski, simplifs, clean_) + pre-alloc vecs

Remove minkowski, simplification algorithms other than simplify,
clean (union) arbitrary contours on construction, and pre-allocate
vectors when length is known.

* - index from polygon conversion + missed vec prealloc

* Use Polygon shorthand over std::vector

* Update copyright date

* Add Rotate

* Update copyrights to 2023

* Extrude and Revolve accept CrossSection only

* Fix incorrect use of vector constructor

* Fix remaining incorrect vector construction

* Revert "Update copyrights to 2023"

This reverts commit af8f6c8c95135eb3376e1f150fe720fddea16f33.

* Re-update copyright notice in cross_section files

* Add missing precision_ argument to cleaning Unions

* Lift circular resolution globals into Quality

* Replace uses of Manifold globals with Quality

* + Ellipse, Mirror, Area

* Include mirror in Union example and test area

* + Rewind (reverse winding of all contours)

* + fillrule/IsEmpty - Ellipse/Rewind

* Move Quality into public.h

* Remove bad definition

* Replace manual circles with CrossSection::Circle

* Lists of empty contours are empty

* + Rect class, RectClip, + const params/methods

* Add Transform to CrossSection and Rect
2023-03-03 17:11:15 -08:00
Emmett Lalish 11e58ea4d2 Adding SDF LevelSet (#187)
* polymorphic device functions working

* starting to flesh out algorithm

* getting closer

* fleshed out vert computation

* more progress

* BuildTris

* fixed some syntax

* updating to cpp

* added VecDc

* SDF compiles

* SDF runs

* fixed some bugs

* manifold output

* fixed out of memory bug

* flattened sides

* back to egg-crate

* works with CUDA too

* moved SDF

* Revert "moved SDF"

This reverts commit ba2348f38ed752d49eebdf14a73b5e1fd7a4827b.

* added gyroid sample

* added sdf_test

* added SDF tests

* tests pass

* updated gyroid_module

* fixed gyroid module

* added docs

* addressing feedback

* fix cuda detection

* clean up detect cuda

* fixed CUDA failure

* consistent execution policy in Boolean

* remove SDF wrapper class

* simplified tet logic

* use NeighborInside()

* optimized SDF

* moved RemoveUnreferencedVerts

* put printf statements behind MANIFOLD_DEBUG

* enable hashtable resize

* added test for hashtable resizing
2022-09-01 09:04:51 -07:00
Emmett Lalish 738d0fa050 switch copyright to authors 2022-07-06 12:42:00 -07:00
Emmett Lalish 9d7c31ae68 lots more docs 2022-03-06 16:55:37 -08:00
Emmett Lalish 656bd3b9d9 link to doxygen 2022-02-22 22:26:02 -08:00
Emmett Lalish fe8871122f fix comment placement 2022-02-21 21:32:50 -08:00
Emmett Lalish 8a1ca5e389 reverted extra namespaces in favor or doxy modules 2022-02-21 14:23:11 -08:00
Emmett Lalish 0d0f4138fc added scallop example and fixed sorting 2021-07-04 10:19:03 -07:00
Emmett Lalish 668e01d213 added tet puzzle sample 2021-05-13 22:49:49 -07:00
Emmett Lalish f190a31b73 updated copyright dates 2021-05-13 21:48:19 -07:00
Emmett Lalish 048aafa3fa added roundedFrame, removed DeepCopy, better sphere 2020-12-26 16:33:22 -08:00
Emmett Lalish 47a08296ef fixed infinite loop 2020-12-13 23:22:37 -08:00
Emmett Lalish dfe75e1d7d added Menger Sponge sample 2020-07-22 22:18:48 -07:00
Emmett Lalish ec6fdf1177 cleanup bracelet 2020-03-19 21:39:02 -07:00
Emmett Lalish 406539b0cf added docs 2020-03-18 23:06:29 -07:00
Emmett Lalish 7c3ce696f1 started bracelet sample 2019-07-28 21:00:59 -07:00
Emmett Lalish 088a8ab74b added comments & licenses 2019-07-27 23:14:02 -07:00
Emmett Lalish 17b67a84c9 added TorusKnot 2019-07-27 22:27:19 -07:00