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

FEATURE: add entity to snap pick result #1248

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

Kurtil
Copy link
Contributor

@Kurtil Kurtil commented Nov 20, 2023

This PR adds snappedEntity & entity to the scene.snapPick() result.

Use case:
While snap picking with a custom measurement plugin, it may be interesting to link the snap pick (surface/edge/vertex) to an entity to hide/show the corresponding measure when the entity is hidden/shown.

To go further:
The PR closes a little bit more the differences between the standard scene.pick and the snap pick scene.snapPick. Maybe later, both can be merged into one with sone parameters to allow both behaviours on the same API.

@xeolabs xeolabs added this to the 2.4.2 milestone Nov 20, 2023
@ghost
Copy link

ghost commented Nov 20, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@xeolabs xeolabs merged commit e14864c into xeokit:master Nov 20, 2023
2 checks passed
@xeolabs xeolabs added the enhancement New feature or request label Nov 20, 2023
@Kurtil Kurtil deleted the feature/snapPickEntity branch November 21, 2023 09:24
xeolabs added a commit that referenced this pull request Nov 23, 2023
Make snap pick result return snapped Entity, not Mesh #1248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants