TDMTRI(3NCARG)
β¨ TDMTRI β¨ (the NCAR Graphics one, bestie π)
okay so literally welcome to TDMTRI from the NCAR Graphics family β she lives in the 3NCARG section of the manual and she is the girl for adding triangles that make up a 3D marker. π
πΈ NAME πΈ
TDMTRI β adds triangles that define a 3D marker into a triangle list. that's it, that's the whole vibe. π
π¦ SYNOPSIS π¦
CALL TDMTRI (IMRK, UMRK, VMRK, WMRK, SMRK, RTRI, MTRI, NTRI, IRST, UMIN,
VMIN, WMIN, UMAX, VMAX, WMAX)
β¨ C-BINDING SYNOPSIS β¨
#include <ncarg/ncargC.h>
void c_tdmtri(int imrk, float umrk, float vmrk, float wmrk, float smrk,
float *rtri, int mtri, int *ntri, int irst, float umin, float vmin,
float wmin, float umax, float vmax, float wmax)
π DESCRIPTION π
so the arguments of TDMTRI are giving, in order:
IMRKβ an input expression of typeINTEGER, no cap. her absolute value sits between1and5, inclusive, and she picks the type of marker that gets generated. π now here's the tea: ifIMRKis less than zero, the triangles will not be clipped against the sides of the data box. otherwise, they will. so the sign literally matters, bestie.UMRK,VMRK, andWMRKβ input expressions of typeREAL. these are the 3-space coordinates of the center point of the marker. the marker's lil home base. πSMRKβ an input expression of typeREAL. this is the radius of the marker in 3-space. how big she's serving, basically. πRTRIβ an input array, of typeREAL, dimensioned10 x MTRI. it's a list of triangles, probably created by means of calls toTDSTRI,TDITRI, and/orTDMTRI, and sorted, probably by means of a call toTDOTRI. yes she's a whole ecosystem. β¨MTRIβ an input expression of typeINTEGER. this is the second dimension ofRTRIand thus the maximum number of triangles the triangle list will hold. the capacity, the limit, the ceiling. π«ΆNTRIβ an input/output variable of typeINTEGER. she keeps track of the number of triangles currently in the list. and listen: it is the user's responsibility to zero this initially, okay?? and its value gets increased by each call to a triangle-generating routine likeTDMTRI. π also super important β ifNTRIbecomes equal toMTRI,TDMTRIdoes not take an error exit; instead, it just stops generating triangles. so it's a good idea, after callingTDMTRI, to check the value ofNTRIagainst the dimensionMTRI. if they're equal, it probably means the triangle list filled up and the rendered surface will be incomplete. π lowkey devastating honestly.IRSTβ an input expression of typeINTEGER. specifies the index of the rendering style to to be used for the triangles added to the triangle list by this call. (yes the original says "to to", iconic, we respect her.) πUMIN,VMIN,WMIN,UMAX,VMAX, andWMAXβ input expressions of typeREAL. each of these specifies one of the coordinate values defining the data box in 3-space. the names of these should make it clear what they are. π―
π« C-BINDING DESCRIPTION π«
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. periodt. no notes. π
π ACCESS π
to use TDMTRI or c_tdmtri, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. the order is not a suggestion bestie, she has opinions. π
π₯ SEE ALSO π₯
online: tdclrs, tdctri, tddtri, tdgeti, tdgetr, tdgrds, tdgrid, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdotri, tdpack, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri, tdstrs
the whole friend group honestly, iykyk π«Ά
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
the use of this Software is governed by a License Agreement.
π real talk: don't forget to zeroNTRIat the start and check it againstMTRIwhen you're done, or your surface is gonna come out looking incomplete and you'll be sobbing. π₯²
okay that's the whole page, mwah. π this was TDMTRI(3NCARG) from the NCAR Graphics manual, and the original footer said it was from UNIX, dated July 1997. slay, bye bestie! πΈβ¨
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms