TDSTRS(3NCARG)
π TDSTRS β bestie edition π
okay so you're in the NCAR GRAPHICS section of the manual (that's the 3NCARG part, iykyk) and you've stumbled onto TDSTRS. welcome. it's giving triangle-glowup. β¨
πΈ NAME πΈ
TDSTRS β sets the values that define a selected rendering style, and that style is literally what decides how triangles look when they get drawn by a call to the routine TDDTRI. no cap.
π SYNOPSIS π
CALL TDSTRS (IRST, IFC1, IFC2, IFC3, IFC4, ILC1, ILC2, ILTD, USTP, VSTP,
WSTP)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_tdstrs(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 TDSTRS are as follows, and yes we're doing all of them, periodt:
IRSTβ (an input expression of typeINTEGER) the index of the particular rendering style which is to be retrieved. it's the vibe selector, bestie. πIFC1andIFC2β (output variables of typeINTEGER) color indices specifying a range of colors to be used for the "bottom" side of a surface (where function values are less than the value on the surface). here's the tea:- if
IFC1is negative, filling of triangles seen from the "bottom" is turned off. π« - if
IFC1is zero or greater, butIFC2is less than or equal to it, the color with indexIFC1is used. one color, no drama. - if
IFC1is zero or greater andIFC2is greater thanIFC1, 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. - (normally, one should make triangles perpendicular to the line of sight lighter than those parallel to the line of sight.) π
- if
IFC3andIFC4β (output variables of typeINTEGER) color indices specifying a range of colors to be used for the "top" side of a surface (where function values are greater than the value on the surface). same energy, different side:- 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. - (normally, one should make triangles perpendicular to the line of sight lighter than those parallel to the line of sight.) β¨
- if
ILC1β (an output variable of typeINTEGER) the color index specifying a color to be used for lines drawn on the "bottom" side of a surface. ifILC1is negative, the drawing of these lines is turned off. πILC2β (an output variable of typeINTEGER) the color index specifying a color to be used for lines drawn on the "top" side of a surface. ifILC2is negative, the drawing of these lines is turned off. πILTDβ (an output variable of typeINTEGER) a flag, which, if set non-zero, turns on the drawing of the edges of the individual triangles into which surfaces have been decomposed. triangle outlines?? we love to see it. π₯USTP,VSTP, andWSTPβ (output variables of typeREAL) 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 whole rule. π
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical. same facts, different wrapper. π«Ά
π ACCESS π
to use TDSTRS or c_tdstrs, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. order matters bestie, don't be chaotic. π§
β SEE ALSO β
Online: tdclrs, tdctri, tddtri, tdgeti, tdgetr, tdgrds, tdgrid, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdotri, tdpack, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri. the whole friend group, go say hi. π
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
fr fr that's the whole page. go forth and render those triangles, main character. π π
TDSTRS(3NCARG) Β· NCAR GRAPHICS Β· July 1997 Β· mwah, that's a wrap πβ¨
π¦ 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