TDCTRI(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

πŸ’– TDCTRI β€” bestie, we're cutting triangles today πŸ’–

okay so this is TDCTRI, part of the NCAR GRAPHICS fam (section 3NCARG, for the record πŸ“–). grab a snack, we're slicing geometry πŸ’…


✨ NAME ✨

TDCTRI β€” cut triangles defined by a triangle list. literally that's the whole job bestie πŸŽ€


✨ SYNOPSIS ✨

CALL TDCTRI (RTRI, MTRI, NTRI, IAXS, RCUT)

🌈 C-BINDING SYNOPSIS 🌈

#include <ncarg/ncargC.h>

void c_tdctri(float *rtri, int mtri, int *ntri, int iaxs, float rcut)

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe πŸ‘‘: you hand this routine a list of NTRI triangles chillin' in the array RTRI, plus an axis id IAXS (1 => U axis, 2 => V axis, 3 => W axis), plus a value RCUT along that axis. and then β€” the way it cuts β€” it takes every single triangle that intersects the plane perpendicular to that identified axis at that specified value and slices it into two pieces, one on either side of the plane. it's giving scissors βœ‚οΈβœ¨

why would you even want that? because it's useful when you're rendering the triangles in colors that depend on their position in U, V, or W. iykyk 🌸 (peep the example "tdex04" if you wanna see it in the wild πŸ‘€)

the arguments of TDCTRI are as follows, no skips:

  • RTRI β€” (an input/output array, of type REAL, dimensioned 10 x MTRI) a list of triangles, probably created by means of calls to TDSTRI, TDITRI, and/or TDMTRI. and heads up bestie, the number of triangles in the list may increase as a result of calling TDCTRI. it grows. that's just what it does πŸ’€
  • MTRI β€” (an input expression of type INTEGER) the second dimension of RTRI, and thus the maximum number of triangles the triangle list will hold. it's the ceiling, the cap, the limit 🫢
  • NTRI β€” (an input/output variable of type INTEGER) specifies the number of triangles currently in the list. and listen β€” it is the user's responsibility to zero this initially πŸ™ˆ. its value gets increased by each call to a triangle-generating routine like TDSTRI or TDITRI, and it may be increased by a call to TDCTRI too. so like, don't forget to zero it, fr fr.
  • IAXS β€” (an input variable of type INTEGER) specifies the axis to which the cut plane is perpendicular (1 => U axis, 2 => V axis, 3 => W axis). pick your fighter ⭐
  • RCUT β€” (an input variable of type REAL) specifies that value of U, V, or W at which the cut plane intersects the axis. the exact spot, periodt πŸ’…

🌸 C-BINDING DESCRIPTION 🌸

the C-binding argument descriptions are the same as the FORTRAN argument descriptions. no new lore, same energy, we love consistency πŸ’œ


⭐ ACCESS ⭐

to use TDCTRI or c_tdctri, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. order matters bestie, don't play with it πŸ”₯


πŸŽ€ SEE ALSO πŸŽ€

online, the whole squad:

tdclrs, tddtri, tdgeti, tdgetr, tdgrds, tdgrid, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdpack, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri, tdstrs


Copyright (C) 1987-2009 University Corporation for Atmospheric Research

the use of this Software is governed by a License Agreement. πŸ“œ


ok that's the whole page bestie, go cut some triangles πŸ¦‹βœ‚οΈ

kisses, this was TDCTRI(3NCARG) on UNIX, dated July 1997 β€” yeah she's an icon from the 90s and she still ate πŸ’…πŸ‘‘πŸ’–

πŸ“¦ where this page comes from