sc::RenderedPolygons(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

πŸ’… 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 a const Ref< KeyVal > & because of course she reads her settings from a KeyVal πŸŽ€
  • void initialize (int nvertex, int nface, RenderedPolygons::Coloring c=RenderedPolygons::None) β€” sets up nvertex vertices and nface faces; the coloring argument c defaults to RenderedPolygons::None
  • void set_vertex (int, double x, double y, double z) β€” drops in a vertex at x, y, z
  • void set_vertex_rgb (int, double r, double g, double b) β€” sets a vertex's color as raw r, g, b values 🌈
  • void set_vertex_color (int i, const Color &c) β€” same idea but fancy, using a Color object c for vertex i
  • void set_face (int iface, int v1, int v2, int v3) β€” makes a triangle: face iface out of vertices v1, v2, v3
  • void set_face (int iface, int v1, int v2, int v3, int v4) β€” the quad version: face iface out of v1, v2, v3, v4 (four vertices, she's flexible like that)
  • int nvertex () const β€” how many vertices you got
  • int nface () const β€” how many faces you got
  • int nvertex_in_face (int iface) const β€” how many vertices live in face iface (three or four, iykyk)
  • const double * vertex (int i) const β€” a pointer to vertex i's data
  • double vertex (int i, int j) const β€” single coordinate: component j of vertex i
  • int face (int i, int j) const β€” the vertex index sitting at position j of face i
  • double vertex_rgb (int i, int j) const β€” color component j of vertex i's rgb
  • int 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 a const 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