sc::Vertex(3)

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

πŸ’– sc::Vertex(3) β€” bestie, it's the Library Functions Manual πŸ’–

okay so welcome to the sc::Vertex(3) page, part of the Library Functions Manual, and I am so excited to walk you through it. this little cutie is a vertex. yes, like a point in space with ✨opinions✨ (the opinions are normals). let's go πŸ¦‹


🌸 NAME 🌸

sc::Vertex β€” she's a class, she's giving geometry, she's the moment πŸ’…


✨ SYNOPSIS ✨

she Inherits sc::RefCount. family tree matters, bestie 🌈

Inherits sc::RefCount.

πŸŽ€ Public Member Functions

these are the ones you can just... call. iconic behavior πŸ‘‘

Vertex (const SCVector3 &point, const SCVector3 &normal)
Vertex (const SCVector3 &point)
const SCVector3 & point () const
int has_normal () const
const SCVector3 & normal () const
void set_point (const SCVector3 &p)
void set_normal (const SCVector3 &p)
operator SCVector3 & ()
void print (std::ostream &o=ExEnv::out0())

lowkey that's the whole main character list. two constructors, a getter for the point, a has_normal() vibe check, a getter for the normal, setters for both, a conversion operator, and a print(). periodt πŸ’œ

🫢 Public Member Functions inherited from sc::RefCount

she got these from her ancestor. no cap, reference counting is a whole lifestyle πŸ’€

  • int lock_ptr () const β€” locks this object. grab it and don't let go πŸ”’
  • int unlock_ptr () const β€” unlocks this object. okay release her, she's free πŸ•ŠοΈ
  • void use_locks (bool inVal) β€” start and stop using locks on this object. toggle toggle 🎚️
  • refcount_t nreference () const β€” returns the reference count. just tell me the number πŸ“Š
  • refcount_t reference () β€” increments the reference count and returns the new count. adding a bestie to the group chat βž•
  • refcount_t dereference () β€” decrements the reference count and returns the new count. removing a bestie from the group chat (sad) βž–
  • int managed () const β€” (first one, she said it twice, and honestly? iconic) 🌟
  • void unmanage () β€” turn off the reference counting mechanism for this object. she's going rogue, she's unmanaged now 😭
  • int managed () const β€” returns 1 if the object is managed. otherwise returns 0. so like, a vibe check that returns a bool-ish number βœ…βŒ
not me listing int managed () const twice β€” but bestie, that's literally what the original says, so I'm keeping both. the way that accuracy is non-negotiable πŸ™ˆ

🌟 Public Member Functions inherited from sc::Identity

  • Identifier identifier () β€” returns the Identifier for this argument. she has a name tag and she's wearing it with pride 🏷️

πŸ’… Additional Inherited Members

πŸ”’ Protected Member Functions inherited from sc::RefCount

these are the family secrets, protected, you can't just call them from outside πŸ‘€

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

yep, copy constructor and copy assignment. the classics πŸ’–


πŸ‘‘ Author

Generated automatically by Doxygen for MPQC from the source code. so like, no human wrote this by hand, it's a robot glow-up πŸ€–βœ¨


aaaand that's the whole page, bestie!! you ate this. go forth and vertex responsibly πŸ¦‹πŸ’–

signing off from MPQC Version 2.3.1 β€” sc::Vertex(3), she's done, she's slaying, she's periodt πŸ’…πŸŒΈπŸŽ€

πŸ“¦ where this page comes from