sc::Shape(3)
π NAME π
sc::Shape β from the MPQC manual, aka sc::Shape(3) β is a Volume that represents a 3D solid. That's literally the name vibe, bestie. π«Άβ¨
β¨ SYNOPSIS β¨
#include <shape.h>
- Inherits
sc::Volume. - Inherited by
sc::ConnollyShape,sc::SphereShape,sc::Uncapped5SphereExclusionShape,sc::UncappedTorusHoleShape, andsc::UnionShape.
π Public Member Functions π
Shape (const Ref< KeyVal > &keyval)β constructor signature; the page gives no extra blurb, so we keep it exact. β¨virtual double distance_to_surface (const SCVector3 &r, SCVector3 *grad=0) const =0β pure virtual (=0), andgraddefaults to0.virtual int is_outside (const SCVector3 &r) constβ signature only on this page.void compute ()β Recompute at least the results that have compute true and are not already computed.void interpolate (const SCVector3 &p1, const SCVector3 &p2, double val, SCVector3 &result)β signature only on this page.int value_implemented () constβ Information about the availability of values, gradients, and hessians.
π«Ά Additional Inherited Members π«Ά
Inherited extras live here, bestie β this page doesn't spell them out any further. π
π¦ Detailed Description π¦
Okay so, big picture: a Shape is a Volume that represents a 3D solid. π§β¨
The value of the Shape at each point in space is the distance to the surface. The distance is negative if the point is inside the solid. For Shape specializations that cannot compute the distance to the surface, the value will be 1.0 outside and -1.0 inside the solid. No cap.
π₯ Member Function Documentation π₯
π void sc::Shape::compute () [virtual]
compute () recomputes at least the results that have compute true and are not already computed.
This should only be called by Result's members. π
It implements sc::Volume. Periodt.
π Author π
Generated automatically by Doxygen for MPQC from the source code. The robots wrote this one, bestie. π€π
And that's the tea βπ β version 2.3.1 from MPQC, dated Sun Oct 4 2020, for sc::Shape(3). Bye bestie, go compute some shapes! π
β¨π¦
π¦ 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