sc::Triangle(3)
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, andorient0defaults to0so you can just not mention it β¨Ref< Edge > edge (int i)β hand me the edge atiplease πint contains (const Ref< Edge > &) constβ asks whether a given edge is in here, returns anintπunsigned int orientation (int i) constβ orientation of the thing at indexiunsigned 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, slayvoid interpolate (const Ref< TriInterpCoef > &, double r, double s, const Ref< Vertex > &v, SCVector3 &dA)β interpolation, take onevoid interpolate (double r, double s, const Ref< Vertex > &v, SCVector3 &dA)β interpolation, take two, no coef object this timevoid interpolate (double r, double s, const Ref< Vertex > &v, SCVector3 &dA, const Ref< Volume > &vol, double isovalue)β interpolation, take three, now with aVolumeand anisovaluein the mix π₯Ref< Vertex > vertex (int i)β gimme vertexiπ«double flat_area ()β returns adouble, 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 atvoid 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 objectrefcount_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 () constvoid 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 _orderunsigned int _orientation0unsigned int _orientation1unsigned int _orientation2Ref< 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
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- ubuntu noble: libsc-doc 2.3.1-22build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms