public interface ISubObjectPickerSomething that can say which face, edge or vertex of an entity is under the pointer.
Remarks
Deliberately not on IScenePicker, and doc 24's B4 is why the two are different questions. "Which entity is under this ray" is asked of a scene and answers with something the whole editor understands; "which face of this mesh" is asked of one entity, answers with an index into a table only the caller and the mesh agree about, and needs a tolerance in pixels because a vertex has no area. A stub that answered the first cannot sensibly answer the second, and every test in this assembly that has one would have had to.
An interface for the reason the other two are: the viewport asks and something else knows the scene.
Methods (3)
SubObject Under(Entity entity, Vector2 pointer, EditorCamera camera, int width, int height, SubObjectFilter filter = All, float tolerance = 10)Which element of an entity's mesh is under a point in the viewport.
void Within(Entity entity, Marquee marquee, EditorCamera camera, int width, int height, MeshElementKind kind, List<int> into)Which elements of an entity's mesh a rubber-band took.
MeshElements? ElementsOf(Entity entity)The elements of an entity's mesh, or if it has none.
Used by (2)
- ScenePickerVixen.Editor.SceneView
- SceneViewportVixen.Editor.SceneView