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

Rework Point and Direction class #16

Merged
merged 21 commits into from
Aug 31, 2022
Merged

Rework Point and Direction class #16

merged 21 commits into from
Aug 31, 2022

Conversation

RobPasMue
Copy link
Member

Following @jorgepiloto's suggestion, we will be reworking the Point class into Point2D and Point3D and making use of np.ndarray as parent class.

@RobPasMue RobPasMue self-assigned this Aug 31, 2022
@github-actions github-actions bot added maintenance Package and maintenance related bug Something isn't working labels Aug 31, 2022
@RobPasMue RobPasMue marked this pull request as ready for review August 31, 2022 11:38
@RobPasMue
Copy link
Member Author

Point2D and Point3D was heavily tested. Direction was not since we are waiting on VectorXD implementation.

Would love to hear your inputs. Specially regarding DirectionXD. Some questions:

  • Are both of them necessary? Can we live with just Direction3D?
  • What's the end usage of this object? Can we not live with a simple UnitVectorXD set of classes?

@RobPasMue
Copy link
Member Author

Pinging @chadqueen @jorgepiloto @Revathyvenugopal162 and @MaxJPRey for discussion

@RobPasMue RobPasMue mentioned this pull request Aug 31, 2022
27 tasks
Copy link
Member

@jorgepiloto jorgepiloto left a comment

Choose a reason for hiding this comment

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

Just left some comments regarding the constructor. I think we should force only the usage of a list for the coordinates (same as NumPy), since this leads to:

  • Uniform constructors
  • Siplification of current constructor logic and tests

Please, tell me what you think about this.

src/ansys/geometry/core/primitives/point.py Outdated Show resolved Hide resolved
src/ansys/geometry/core/primitives/point.py Outdated Show resolved Hide resolved
RobPasMue and others added 7 commits August 31, 2022 15:43
Co-authored-by: Revathy Venugopal <104772255+Revathyvenugopal162@users.noreply.github.com>
Co-authored-by: Maxime Rey <87315832+MaxJPRey@users.noreply.github.com>
Co-authored-by: Maxime Rey <87315832+MaxJPRey@users.noreply.github.com>
@RobPasMue RobPasMue merged commit ee381c2 into main Aug 31, 2022
@RobPasMue RobPasMue deleted the fix/point-direction-redo branch August 31, 2022 15:12
@RobPasMue RobPasMue mentioned this pull request Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maintenance Package and maintenance related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants