global functions
ofDrawArrow(...)
void ofDrawArrow(const glm::vec3 &start, const glm::vec3 &end, float headSize=0.05f)
Documentation from code comments
Draws an arrow with the current color.
This function draws an arrow from a start (tail) point to an end (head) point, with a conical arrowhead at the end point. The arrow is drawn in the current color (e.g. set with ofSetColor).
ofSetColor(0,0,0);
ofVec3f arrowTailPoint (0,0,0);
ofVec3f arrowHeadPoint (100, 150,0);
ofDrawArrow(arrowTailPoint, arrowHeadPoint, 20.0);
Parameters:
start The start point (tail) of the arrow, expressed as an ofVec3f.
end The end point (head) of the arrow, expressed as an ofVec3f.
headSize The size of the arrowhead.
ofDrawAxis(...)
void ofDrawAxis(float size)
Documentation from code comments
Parameters:
size The size at which to draw the axes.
ofDrawGrid(...)
void ofDrawGrid(float stepSize=1.25f, size_t numberOfSteps, bool labels=false, bool x=true, bool y=true, bool z=true)
Documentation from code comments
Draws grid planes representing the current reference frame.
This function draws a set of three double-ended grid planes centered at the origin. Parameters allow each of the grid planes (yz,xz, and xy) to be turned on or off. Optionally, the function can include white numeric labels for grid subdivisions. (Numeric labels are drawn using ofDrawBitmapString internally.)
The yz plane (at x=0) is drawn in red. The xz plane (at y=0) is drawn in green. The xy plane (at z=0) is drawn in blue.
Parameters:
stepSize distance between (parallel) lines on the grid
numberOfSteps number of lines to draw on each side of the central axis of the grid. A number of 8 will draw 8 lines on each side of the central axis, plus one line at the central axis.
labels Whether or not labels are drawn.
x Whether or not the yz plane (at x=0) is drawn.
y Whether or not the xz plane (at y=0) is drawn.
z Whether or not the xy plane (at z=0) is drawn.
ofDrawGridPlane(...)
void ofDrawGridPlane(float stepSize=1.25f, size_t numberOfSteps, bool labels=false)
Documentation from code comments
Draws the YZ grid plane representing the current reference frame.
This function draws the YZ grid plane, at x=0, in a double-ended manner centered at the origin. Optionally, the function can include white numeric labels for grid subdivisions. (Numeric labels are drawn using ofDrawBitmapString internally.) The grid is drawn with the current color (i.e. set with ofSetColor).
Parameters:
stepSize distance between (parallel) lines on the grid
numberOfSteps number of lines to draw on each side of the central axis of the grid. A number of 8 will draw 8 lines on each side of the central axis, plus one line at the central axis.
labels Whether or not labels are drawn.
ofDrawRotationAxes(...)
void ofDrawRotationAxes(float radius, float stripWidth, int circleRes=60)
Documentation from code comments
This function renders a set of 3 axis-aligned circular bands, centered at the origin.
Parameters:
radius The radius of the circular bands.
stripWidth The width of the circular bands. The default is 10 units.
circleRes The resolution of the circular bands. The default is 60 segments.
Last updated 星期二, 19 十一月 2024 17:25:53 UTC - 2537ee49f6d46d5fe98e408849448314fd1f180e
If you have any doubt about the usage of this module you can ask in the forum.
If you want to contribute better documentation or start documenting this section you can do so here
If you find anything wrong with this docs you can report any error by opening an issue