Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom plane splitvoxels #46

Merged
merged 30 commits into from
Oct 11, 2024
Merged

Conversation

Jannetty
Copy link
Member

@Jannetty Jannetty commented Oct 4, 2024

Resolves #17

Provides functionality so users can specify planes for potts cells to divide along.

@Jannetty Jannetty self-assigned this Oct 4, 2024
@Jannetty Jannetty added the type: feature Improvement or additions to the code base label Oct 4, 2024
@Jannetty Jannetty changed the title Jannetty/add custom plane splitvoxels add custom plane splitvoxels Oct 4, 2024
Copy link
Member

@jessicasyu jessicasyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good so far! Mostly comments to streamline the code a bit

src/arcade/core/util/Plane.java Outdated Show resolved Hide resolved
src/arcade/core/util/Plane.java Outdated Show resolved Hide resolved
src/arcade/core/util/Plane.java Outdated Show resolved Hide resolved
src/arcade/core/util/Plane.java Outdated Show resolved Hide resolved
src/arcade/potts/env/location/PottsLocation.java Outdated Show resolved Hide resolved
test/arcade/potts/env/location/PottsLocationTest.java Outdated Show resolved Hide resolved
test/arcade/potts/env/location/PottsLocationTest.java Outdated Show resolved Hide resolved
test/arcade/core/util/PlaneTest.java Outdated Show resolved Hide resolved
test/arcade/core/util/PlaneTest.java Outdated Show resolved Hide resolved
test/arcade/core/util/PlaneTest.java Outdated Show resolved Hide resolved
daniellevahdat and others added 9 commits October 9, 2024 15:16
src/arcade/potts/util/Plane.java Outdated Show resolved Hide resolved
src/arcade/potts/util/PottsEnums.java Outdated Show resolved Hide resolved
src/arcade/potts/env/location/PottsLocation.java Outdated Show resolved Hide resolved
src/arcade/potts/env/location/PottsLocation.java Outdated Show resolved Hide resolved
test/arcade/potts/util/PlaneTest.java Outdated Show resolved Hide resolved
test/arcade/potts/util/PlaneTest.java Outdated Show resolved Hide resolved
src/arcade/potts/env/location/PottsLocation.java Outdated Show resolved Hide resolved
src/arcade/core/util/Plane.java Outdated Show resolved Hide resolved
test/arcade/potts/util/PlaneTest.java Outdated Show resolved Hide resolved
Copy link
Member

@jessicasyu jessicasyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on this! Two minor suggestions to use the new Plane constructor, but otherwise ready to go

src/arcade/potts/env/location/PottsLocation.java Outdated Show resolved Hide resolved
test/arcade/potts/env/location/PottsLocationTest.java Outdated Show resolved Hide resolved
@Jannetty Jannetty marked this pull request as ready for review October 11, 2024 20:37
@Jannetty Jannetty merged commit 2f75d83 into develop Oct 11, 2024
5 checks passed
@Jannetty Jannetty deleted the jannetty/add-custom-plane-splitvoxels branch October 11, 2024 20:38
Jannetty added a commit that referenced this pull request Oct 18, 2024
* changed docstrung for getDirection to specify that it gets direction with shortest diameter through location

* adding initial Plane, Point, Vector classes and associated tests

* adding last file

* adding Plane container and Plane factory to make planes from potts enums

* wip many tests failing, fixing PottsLocationTest.java

* corrected normal vectors in PottsPlaneFactory. Updated tests. Added tests.

* moved all points and vectors to int3Ds, expanded direction enum, removed plane factory and container

* small changes to PottsEnums test, formatting fixes

* removed extra split function

* Divide Distance to Plane by Normal Vector Magnitude (#52)

* Signed distance to plane and tests for plane class

* Signed distance to plane and tests

* updated tests, renamed function

---------

Co-authored-by: Danielle Vahdat <[email protected]>
Co-authored-by: daniellevahdat <[email protected]>
Co-authored-by: jannetty <[email protected]>

* moved Plane to Potts, changed point type to Voxel, removed unused function

* change plane to have point represented as voxel instead of int3d

* changed signedDistance function to take voxel

* updated test

* changed enum back, formatting fixes

* removing test.class

* Update src/arcade/potts/env/location/PottsLocation.java

Co-authored-by: Jessica S. Yu <[email protected]>

* addressing Jess's comments. Normalizing plane normal vector.

* formatting fixes

* added a few white spaces

* Update src/arcade/potts/env/location/PottsLocation.java

Co-authored-by: Jessica S. Yu <[email protected]>

* Update test/arcade/potts/env/location/PottsLocationTest.java

Co-authored-by: Jessica S. Yu <[email protected]>

---------

Co-authored-by: daniellevahdat <[email protected]>
Co-authored-by: Danielle Vahdat <[email protected]>
Co-authored-by: daniellevahdat <[email protected]>
Co-authored-by: Jessica S. Yu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Improvement or additions to the code base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants