ginputSurface

Graphical input from mouse on 3d surfaces

You are now following this Submission

Works similiar to Matworks ginput function
  • Supports surfaces that contain nan and inf
  • Allows zooming, panning, 3d rotation, and point query between or prior to point selection
Selected will be the part of the surface that the viewable sightline intesects with using interp2. The funciton will not return parts of the surface outside the visible axis
Known limitations:
  • if the sight line to the cursor intersects with the surface multiple times in the span of less than a pixel the returned value may be errenous.
Example:
[X,Y,Z]=peaks(30);
surf(X,Y,Z);
[x,y,z,b] = ginputSurface(X,Y,Z,3);

Cite As

Derrick (2026). ginputSurface (https://ch.mathworks.com/matlabcentral/fileexchange/178859-ginputsurface), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0