sc::RenderedPolygons(3)
π sc::RenderedPolygons β the MPQC glow-up page β¨
okay bestie, so this is the manual page for sc::RenderedPolygons, and it lives in section 3 of the MPQC manual. it's a whole class for drawing polygons that actually get rendered, and she inherits from sc::RenderedObject β so all that base-class energy comes free π«Ά
πΈ SYNOPSIS πΈ
Inherits sc::RenderedObject.
π Public Types π
enum Coloring { None, Vertex }β the two coloring modes, literally it. you can have no coloring at all (None), or color per-vertex (Vertex). pick your vibe β¨
π Public Member Functions π
the full roster, no cap, every single one:
RenderedPolygons (const Ref< KeyVal > &)β the constructor, taking aconst Ref< KeyVal > &because of course she reads her settings from a KeyVal πvoid initialize (int nvertex, int nface, RenderedPolygons::Coloring c=RenderedPolygons::None)β sets upnvertexvertices andnfacefaces; the coloring argumentcdefaults toRenderedPolygons::Nonevoid set_vertex (int, double x, double y, double z)β drops in a vertex atx,y,zvoid set_vertex_rgb (int, double r, double g, double b)β sets a vertex's color as rawr,g,bvalues πvoid set_vertex_color (int i, const Color &c)β same idea but fancy, using aColorobjectcfor vertexivoid set_face (int iface, int v1, int v2, int v3)β makes a triangle: faceifaceout of verticesv1,v2,v3void set_face (int iface, int v1, int v2, int v3, int v4)β the quad version: faceifaceout ofv1,v2,v3,v4(four vertices, she's flexible like that)int nvertex () constβ how many vertices you gotint nface () constβ how many faces you gotint nvertex_in_face (int iface) constβ how many vertices live in faceiface(three or four, iykyk)const double * vertex (int i) constβ a pointer to vertexi's datadouble vertex (int i, int j) constβ single coordinate: componentjof vertexiint face (int i, int j) constβ the vertex index sitting at positionjof faceidouble vertex_rgb (int i, int j) constβ color componentjof vertexi's rgbint have_vertex_rgb () constβ do we have vertex rgb colors or not, a whole vibe check π¦
π§ Protected Member Functions π§
void render (const Ref< Render > &)β the protected one, does the actual rendering with aconst Ref< Render > &. she's protected for a reason, bestie π
π Additional Inherited Members π
everything else comes from sc::RenderedObject, so go read that page too, you're gonna want the full lore π
π heads up: neither this page nor the original gives you any environment variables, exit statuses, signals, files, or error behavior β so don't go looking, it's giving sparse and that's just how she is π
β Author β
Generated automatically by Doxygen for MPQC from the source code. β so nobody hand-wrote this, Doxygen did it, and honestly she ate π
and that's the page!! this one came from Version 2.3.1, dated Sun Oct 4 2020 β MPQC forever, mwah ππβ¨
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms