Expanding Snap Struct feedback Currently snap functionality only gives back single points (positions), such as snapMode.hitPoint and snapMode.refPoint. https://help.autodesk.com/view/MAXDEV/2023/ENU/?guid=GUID-9D393805-DF20-4EB3-934D-731A707DE81A But some snap modes deal with more than just points, such as Edge/Segment and Midpoint which deals with what is essentially lines with direction. I suggest that instead of just providing points, for the snap modes that involves edges and segments also provide information about the segment, such as: • Direction (vector between the two points of the segment). • Normal (normalized vector between the two points). This feedback would be useful when creating custom tools that deal with edges and alignment, as it is more convenient just picking one edge rather than having to pick two points to achieve the same thing. A few other ideas for other snapping modes. • Face and Center Face - face normal. • Bounding Box - bounding box size as Box3 value. • Pivot - pivot transform. pickEdge() function Picking points in the viewport is something users have been able to do for a very long time: https://help.autodesk.com/view/MAXDEV/2023/ENU/?guid=GUID-42CD0531-6BD1-4489-B5A0-C001F4EE577B But what if there was a similar function specifically for picking edges? Edges provide useful data in many ways, but it is currently difficult to extract edge/segment information from scenes the way we can pick points. To pick a specific edge requires potentially overly complicated workarounds that could be significantly simplified with a pick mode that only allows you to pick edges on geometry objects, or segments in splines, and extract useful information from the pick. In a similar manner as the snap suggestion above, such information could involve: • Direction. • Normal. • The vertices connected to the edge (positions and vertex IDs).
Show More