Commit Graph

157 Commits

Author SHA1 Message Date
David Allemang
a28cc2d8be Add "center" offset to each slice 2020-10-29 20:43:06 -04:00
fbd23aea02 introduce set_union wrapper
also rename set_difference wrapper
2020-10-25 00:55:52 -04:00
a3233c2686 support multiple slices 2020-10-25 00:31:38 -04:00
c1f5163008 reintroduce each_tile and tile.
each_tile produces a vector of mesh parts, and tile produces the merged result.
2020-10-25 00:31:28 -04:00
David Allemang
01043e9bce Replace ComboIterator with std::set<std::vector<int>> via combinations.hpp
Since the number of generators never exceeds 6, the maximum number of combinations is (6, 3) = 20, so the space optimizations of using an iterator is mute.

Doing this way also allows to use set_difference and set_union to deal with collections of subgroups. This is not easily possible otherwise.
2020-10-24 23:06:52 -04:00
David Allemang
6e3ea1900b Convert hull to static method; inline all_sg_gens and exclude parameters for future testing. 2020-10-22 21:52:25 -04:00
David Allemang
9ce626ee64 introduce Mesh class with subgroup context 2020-10-14 17:14:25 -04:00
6ff09dc375 Introduce perspective projection matrix.
Also correct a bug where the view matrix was not being used.
2020-10-13 10:57:30 -04:00
49927568e4 Introduce cgl::Buffer::put<E> for Eigen matrices and other containers.
Make put(std::vector<T>) more generic by specializing the new put<E> method.
2020-10-13 10:56:55 -04:00
David Allemang
6b34694784 Replace Primitive vector with Eigen matrices.
template<unsigned N>
Prims<N> = Eigen::Matrix<unsigned, N, Eigen::Dynamic>

Replaces std::vector<Primitive<N>>
2020-10-12 21:57:18 -04:00
David Allemang
0534c4322c Refactor Slice / SliceRenderer to be less general; get away from "prop" overhead. 2020-10-11 18:55:43 -04:00
David Allemang
c164c319fc Cleanup and tweaks for nanogui
- clean up main-gui.cpp
- Add Primitive constructor from vector
- move ubo bindbufferbase to correct location
2020-10-11 18:00:38 -04:00
David Allemang
7fb70dbae6 Remove top-level glfw submodule 2020-10-10 23:00:41 -04:00
David Allemang
916e9a8906 Migrate to NanoGUI / Eigen for GUI and linear algebra.
Also introduce a GUI play/pause button.
2020-10-10 22:59:51 -04:00
David Allemang
5e3b4defd7 set nanogui branch 2020-10-09 18:44:53 -04:00
David Allemang
1705215bff Disable nanogui extras 2020-10-09 18:42:00 -04:00
David Allemang
6aaa393228 Introduce nanogui 2020-10-09 18:39:51 -04:00
98ad0bf62e remove glm submodule 2020-07-01 23:42:44 -04:00
ec09506a74 remove glm dependency; split solver and geometry classes 2020-06-28 15:23:27 -04:00
dfea554289 remove broken flipping mechanics 2020-06-28 15:08:46 -04:00
9ff1dda9df load cgl as submodule 2020-06-28 13:12:19 -04:00
ea3b7a0691 move cgl to separate repo 2020-06-28 12:40:12 -04:00
465f863687 multiple vbos for each prop 2020-06-27 22:37:55 -04:00
18abe824d2 remove crossview 2020-06-27 22:32:46 -04:00
a639fb40e4 Rename project to match repository. toddcox-visualize 2020-06-27 22:24:28 -04:00
7c1f1a8b9f basic 5d rotations; crossview 2020-05-27 17:40:11 -04:00
05d4314cec Merge remote-tracking branch 'origin/props' into props
# Conflicts:
#	vis/src/main.cpp
2020-05-26 22:57:16 -04:00
45584f0621 break into multiple files; remove specialized prop/renderer classes 2020-05-26 22:55:36 -04:00
d16693189e tweak presets to be larger, add f4 and h4 examples with wireframes. 2020-05-23 11:04:23 -04:00
47f8da7192 fix issue where some projected 5d wires cross over w=4 2020-05-23 11:03:36 -04:00
350ee5652f move scene info to renderer v1.0.0 2020-05-22 20:37:16 -04:00
1ed481d4a8 add directrenderer for wireframes 2020-05-21 20:49:26 -04:00
293eeb3759 introduce Bundle 2020-05-21 20:28:19 -04:00
7409178f0a transistioning to props and renderers 2020-05-21 20:21:43 -04:00
50ec2476eb fix uninitialized state being potentially (usually) invalid 2020-05-20 22:30:41 -04:00
aa966c6917 Merge branch 'master' of github.com:allemangD/toddcox-visualize 2020-05-20 22:27:59 -04:00
c742c28521 prevent wireframe clipping above w=1 2020-05-20 22:27:47 -04:00
870f27d836 yaml-cpp submodule 2020-04-21 14:09:51 -04:00
38eb7fb47a add ortho/stereo toggle; more presets 2020-03-18 19:12:46 -04:00
702bacf463 remove debugging info 2020-03-18 17:48:11 -04:00
c7c59e08d5 accept config file as program argument 2020-03-18 17:45:24 -04:00
2606f74f70 load wireframes from files 2020-03-18 17:41:59 -04:00
33501650b2 load wireframes from files 2020-03-18 17:29:12 -04:00
acdc19bbb9 extra scene tweaks 2020-03-15 14:24:13 -04:00
30966308ca better coords 2020-03-15 13:09:34 -04:00
2277036c02 more templates in point 2020-03-15 12:53:14 -04:00
f06f92bd9b drawable to "slice" and add builder factory method 2020-03-14 00:36:46 -04:00
0300e1bfc3 template not a great idea yet; back to vectors but better implementation 2020-03-13 22:12:25 -04:00
2fcb15a14d change combo iterator 2020-03-13 17:49:59 -04:00
2c2b6ef96b random holes 2020-03-11 20:11:03 -04:00