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 Points to the primitives in the modeler #790

Merged
merged 20 commits into from
Jan 31, 2022
Merged

Add Points to the primitives in the modeler #790

merged 20 commits into from
Jan 31, 2022

Conversation

MaxJPRey
Copy link
Collaborator

It is now possible to add point primitives.
Point is different from Object3d because it doesn't have any ids.
Points are identified by their name.
The color is handled differently because they have no material (material are used for Object3d to set the color if none is provided when creating the object).
It is not possible to change the color of the point because of the "Edit" button.

Points can be accessed from primitives either by a list of a dictionary (where the point's name is the key).

Fix #747 .

@MaxJPRey MaxJPRey marked this pull request as draft January 28, 2022 10:34
@MaxJPRey MaxJPRey requested a review from maxcapodi78 January 28, 2022 17:09
@MaxJPRey MaxJPRey marked this pull request as ready for review January 28, 2022 17:09
Copy link
Collaborator

@maxcapodi78 maxcapodi78 left a comment

Choose a reason for hiding this comment

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

LGTM

pyaedt/modeler/Object3d.py Outdated Show resolved Hide resolved
pyaedt/modeler/Primitives3D.py Outdated Show resolved Hide resolved
pyaedt/modeler/Primitives3D.py Show resolved Hide resolved
@MaxJPRey MaxJPRey merged commit fdc9a91 into main Jan 31, 2022
@MaxJPRey MaxJPRey deleted the fix/issue_747 branch January 31, 2022 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CreatePoint not available in Pyaedt
2 participants