TDGTRS(3NCARG)
π TDGTRS β the NCAR Graphics bestie that spills the tea on rendering styles π
okay so. this is a page from NCAR Graphics (the <pink>TDGTRS(3NCARG)</pink> one, hey girl hey π). it's all about getting the values that define a selected rendering style, which β and this is the important part β changes how triangles look when you draw them with a call to TDDTRI. so like, TDDTRI does the drawing, and TDGTRS is the one who tells you what settings are currently loaded. she's the gossip, not the artist. π
β¨ SYNOPSIS β¨
CALL TDGTRS (IRST, IFC1, IFC2, IFC3, IFC4, ILC1, ILC2, ILTD, USTP, VSTP,
WSTP)
that's the whole squad right there, no cap π«Ά
π C-BINDING SYNOPSIS π
for my C girlies:
#include <ncarg/ncargC.h>
void c_tdgtrs(int irst, int *ifc1, int *ifc2, int *ifc3, int *ifc4, int
*ilc1, int *ilc2, int *iltd, float *ustp, float *vstp, float *wstp)
π DESCRIPTION π
the arguments of TDGTRS are, one by one, iconic:
IRSTβ (an input expression of type INTEGER) the index of the particular rendering style you wanna retrieve. like, which fit are we pulling out of the closet? πIFC1andIFC2β (input expressions of type INTEGER) color indices specifying a range of colors used for the "bottom" side of a surface (that's where function values are less than the value on the surface). here's the breakdown, bestie:- if
IFC1is negative, filling of triangles seen from the "bottom" gets turned off. no fill, no vibes. - if
IFC1is zero or greater, butIFC2is less than or equal to it, then the color with indexIFC1is the one that gets used. simple. one color, one moment. β¨ - if
IFC1is zero or greater andIFC2is greater thanIFC1, then a range of color indices is specified. colors near the beginning of that range go to triangles that are nearly perpendicular to the line of sight, while colors near the end of the range go to triangles that are more nearly parallel to the line of sight. (normally you'd wanna make triangles perpendicular to the line of sight lighter than the ones parallel to the line of sight. that's the aesthetic. don't fight it.) π¨
- if
IFC3andIFC4β (input expressions of type INTEGER) color indices specifying a range of colors used for the "top" side of a surface (where function values are greater than the value on the surface). same energy as above, but for the top:- if
IFC3is negative, filling of triangles seen from the "top" is turned off. - if
IFC3is zero or greater, butIFC4is less than or equal to it, the color with indexIFC3is used. - if
IFC3is zero or greater andIFC4is greater thanIFC3, then a range of color indices is specified; colors near the beginning of that range are used for triangles that are nearly perpendicular to the line of sight, while colors near the end of that range are used for triangles more nearly parallel to the line of sight. (and yes, again: normally one should make triangles perpendicular to the line of sight lighter than those parallel to the line of sight. consistency queen. π)
- if
ILC1β (an input expression of type INTEGER) the color index specifying a color to be used for lines drawn on the "bottom" side of a surface. ifILC1is negative, drawing of these lines is turned off. π«ILC2β (an input expression of type INTEGER) the color index specifying a color to be used for lines drawn on the "top" side of a surface. ifILC2is negative, drawing of these lines is turned off. π«ILTDβ (an input expression of type INTEGER) a flag which, if set non-zero, turns on the drawing of the edges of the individual triangles that surfaces have been decomposed into. wireframe moment. π₯USTP,VSTP, andWSTPβ (input expressions of type REAL) the distances between slices in theU,V, andWdirections, respectively. if a given value is zero, the associated slice lines are not drawn. zero means no slices, that's the rule. π°
π§ C-BINDING DESCRIPTION π§
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same facts, different accent. periodt. π
π ACCESS π
to use TDGTRS or c_tdgtrs, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. order matters, don't be chaotic about it. πΈ
π SEE ALSO π
online besties (go read them, iykyk):
tdclrstdctritddtritdgetitdgetrtdgrdstdgridtdinittditritdlblatdlblstdlinetdlnpatdmtritdotritdpacktdpack_paramstdparatdplchtdprpatdprpitdprpttdsetitdsetrtdsorttdstritdstrs
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
okay that's the whole page, bestie!! this one dropped back in July 1997 on UNIX, and it's still serving <rainbow>TDGTRS(3NCARG)</rainbow> realness to this very day. go get those rendering style values, you absolute main character. πβ¨π¦
π¦ 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