sc::Triangle(3)

πŸ“¦
version 2.3.1 Β· 4 versions
, in fedora 43, ubuntu noble

sc::Triangle πŸ’…βœ¨

okay bestie, so this is sc::Triangle β€” section 3 of the library functions manual, the one for the functions themselves πŸŽ€. It's an MPQC thing, it inherits from sc::RefCount, and it's genuinely kind of iconic for a geometry primitive. Let's get into it, no cap πŸ¦‹


✨ NAME ✨

sc::Triangle β€” that's it, that's the whole name, she's lowkey mysterious like that πŸ’œ


🌸 SYNOPSIS 🌸

Bestie she inherits sc::RefCount β€” so all that refcount machinery comes along for the ride 🫢

πŸ‘‘ Public Types

  • enum { max_order = 10 } β€” the ceiling, 10, and that's periodt πŸ’€

πŸŽ€ Public Member Functions

  • Triangle (const Ref< Edge > &v1, const Ref< Edge > &v2, const Ref< Edge > &v3, unsigned int orient0=0) β€” constructor time, three edge refs and an orientation, and orient0 defaults to 0 so you can just not mention it ✨
  • Ref< Edge > edge (int i) β€” hand me the edge at i please πŸ™
  • int contains (const Ref< Edge > &) const β€” asks whether a given edge is in here, returns an int πŸ’–
  • unsigned int orientation (int i) const β€” orientation of the thing at index i
  • unsigned int orientation (const Ref< Edge > &) const β€” same energy but you pass an edge ref instead πŸ¦‹
  • void add_edges (std::set< Ref< Edge > > &) β€” pours the edges into your set 🌈
  • void add_vertices (std::set< Ref< Vertex > > &) β€” and the vertices into your set, slay
  • void interpolate (const Ref< TriInterpCoef > &, double r, double s, const Ref< Vertex > &v, SCVector3 &dA) β€” interpolation, take one
  • void interpolate (double r, double s, const Ref< Vertex > &v, SCVector3 &dA) β€” interpolation, take two, no coef object this time
  • void interpolate (double r, double s, const Ref< Vertex > &v, SCVector3 &dA, const Ref< Volume > &vol, double isovalue) β€” interpolation, take three, now with a Volume and an isovalue in the mix πŸ”₯
  • Ref< Vertex > vertex (int i) β€” gimme vertex i πŸ’«
  • double flat_area () β€” returns a double, and the name says flat area, do with that what you will πŸ’…
  • void flip () β€” flip it, turn it, reverse the vibe πŸ”„
  • unsigned int order () const β€” what order are we at
  • void set_order (int order, const Ref< Volume > &vol, double isovalue) β€” set that order, with a volume and an isovalue along for the ride πŸŽ€

πŸ’œ Public Member Functions inherited from sc::RefCount

  • int lock_ptr () const β€” Lock this object.
  • int unlock_ptr () const β€” Unlock this object.
  • void use_locks (bool inVal) β€” start and stop using locks on this object
  • refcount_t nreference () const β€” Return the reference count.
  • refcount_t reference () β€” Increment the reference count and return the new count.
  • refcount_t dereference () β€” Decrement the reference count and return the new count.
  • int managed () const
  • void unmanage () β€” Turn off the reference counting mechanism for this object.
  • int managed () const β€” Return 1 if the object is managed. Otherwise return 0.
ngl bestie, int managed () const shows up twice in this list. Not me fixing it, not me merging it β€” I'm reporting exactly what's in the source, twice, as the universe intended πŸ™ˆ

πŸ¦‹ Public Member Functions inherited from sc::Identity

  • Identifier identifier () β€” Return the Identifier for this argument.

πŸ“ Protected Attributes

  • unsigned int _order
  • unsigned int _orientation0
  • unsigned int _orientation1
  • unsigned int _orientation2
  • Ref< Edge > _edges [3] β€” three of them, as a treat 🌸
  • Ref< Vertex > * _vertices β€” a pointer, not an array literal, just so we're clear ⭐

🌈 Additional Inherited Members

🧚 Protected Member Functions inherited from sc::RefCount

  • RefCount (const RefCount &)
  • RefCount & operator= (const RefCount &)

πŸ’– Author πŸ’–

Generated automatically by Doxygen for MPQC from the source code. Not a human, just a robot doing its little thing πŸ€–βœ¨


and that's the whole page bestie, we ate and left no crumbs πŸ‘‘

This was MPQC, Version 2.3.1, and the page itself is sc::Triangle(3) β€” no date on the footer, she's timeless like that πŸ’…πŸ«Ά bye!! 🌟

πŸ“¦ where this page comes from