TDGRDS(3NCARG)
π TDGRDS β bestie edition π
okay so real quick, the vibe: this is a page from the NCAR GRAPHICS manual, section 3NCARG, and it's literally about drawing boxes that look cute. let's get into it π
β¨ NAME β¨
TDGRDS β draws perimeters on the six sides of a box, and if you want, it'll throw in ticks or grid lines too. lowkey the most important thing tho: this routine calls TDPARA, which means it will change the definition of the reference parallelogram. so like, heads up. π«Ά
πΈ SYNOPSIS πΈ
CALL TDGRDS (UMIN, VMIN, WMIN, UMAX, VMAX, WMAX, USTP, VSTP, WSTP, IGRT,
IHID)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_tdgrds(float umin, float vmin, float wmin, float umax, float
vmax, float wmax, float ustp, float vstp, float wstp, int igrt, int
ihid)
π DESCRIPTION π
the arguments of TDGRDS are, in order, bestie:
UMIN,VMIN,WMIN,UMAX,VMAX,WMAXβ (input expressions of typeREAL) these are the coordinate values that define the box in 3-space. and honestly? the names say it all. they're giving exactly what they need to give. πUSTP,VSTP, andWSTPβ (input expressions of typeREAL) these specify the step sizes between the ticks or grid lines in the U direction, the V direction, and the W direction, respectively. β and here's the tea: if one of these values is less than or equal to zero, the ticks or grid lines in the associated direction are omitted. gone. not invited. π«IGRTβ (an input expression of typeINTEGER) and it's built like10*IGRN+IGRF, whereIGRNsays what to draw on the near sides of the box andIGRFsays what to draw on the far sides of the box. and "near" and "far" here are defined by the current line of sight, iykyk. π
each of IGRN and IGRF can be one of these:
0β draw nothing1β draw just a perimeter2β draw a perimeter with inward-pointing ticks3β draw a perimeter with a grid
for example, to draw grids on the far side of the box and just perimeters on the near sides of the box, you use IGRT = 13. no cap. π₯
IHIDβ (an input expression of typeINTEGER) set it to0to draw only those sides of the box that cannot be hidden by something inside the box, or to1to draw only those sides of the box that can be hidden by something inside the box. π
and here's the standard operating procedure, bestie, write it down: callTDGRDSbefore drawing surfaces inside a box, withIHIDset to1, and then call it again after drawing surfaces inside a box, withIHIDset to0. that's the ritual. that's the move. π§
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same energy, different syntax. periodt. π
π ACCESS π
to use TDGRDS or c_tdgrds, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. the order matters bestie, don't be chaotic about it. πΈ
π SEE ALSO π
Online: tdclrs, tdctri, tddtri, tdgeti, tdgetr, tdgrid, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdotri, tdpack, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri, tdstrs. the whole friend group, basically. squad goals. π
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
and that's the whole page!! π this one's from the UNIX era, dated July 1997, straight out of the NCAR GRAPHICS manual β so if you ever wondered what the girlies were drawing boxes with in '97, now you know. slay, go draw ur box. π¦β¨π
π¦ 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