Support Forum G3D Web Page |
Inherits G3D::Shape.
Public Member Functions | |
PointShape (const Vector3 &p) | |
virtual float | area () const |
Surface area of the outside of this object. More... | |
virtual CoordinateFrame & | axes () |
virtual AABox | boundingAABox () const |
Bounding axis aligned box of this object. More... | |
virtual Sphere | boundingSphere () const |
Bounding sphere of this object. More... | |
virtual Box & | box () |
virtual const Box & | box () const |
virtual Capsule & | capsule () |
virtual const Capsule & | capsule () const |
virtual Vector3 | center () const |
Center of mass for this object. More... | |
virtual Cylinder & | cylinder () |
virtual const Cylinder & | cylinder () const |
virtual void | getRandomSurfacePoint (Vector3 &P, Vector3 &N=Vector3::ignore, Random &rnd=Random::common()) const |
A point selected uniformly at random with respect to the surface area of this object. More... | |
virtual const Array< int > & | indexArray () const |
virtual Plane & | plane () |
virtual const Plane & | plane () const |
virtual Vector3 & | point () |
virtual const Vector3 & | point () const |
virtual Vector3 | randomInteriorPoint (Random &rnd=Random::common()) const |
A point selected uniformly at random with respect to the volume of this object. More... | |
virtual Ray & | ray () |
virtual const Ray & | ray () const |
virtual void | render (RenderDevice *rd, const CoordinateFrame &cframe, Color4 solidColor=Color4(.5,.5, 0,.5), Color4 wireColor=Color3::black()) |
virtual Sphere & | sphere () |
virtual const Sphere & | sphere () const |
virtual Triangle & | triangle () |
virtual const Triangle & | triangle () const |
virtual Type | type () const |
virtual const Array< Vector3 > & | vertexArray () const |
virtual float | volume () const |
Volume of the interior of this object. More... | |
Static Public Member Functions | |
static String | typeToString (Type t) |
Static Protected Member Functions | |
template<class T , class ... ArgTypes> | |
static shared_ptr< T > | createShared (ArgTypes &&... args) |
Like std::make_shared, but works for protected constructors. More... | |
|
inlineexplicit |
|
inlinevirtual |
Surface area of the outside of this object.
Implements G3D::Shape.
|
inlinevirtualinherited |
Reimplemented in G3D::AxesShape.
|
inlinevirtual |
Bounding axis aligned box of this object.
Implements G3D::Shape.
|
inlinevirtual |
Bounding sphere of this object.
Implements G3D::Shape.
|
inlinevirtualinherited |
Reimplemented in G3D::BoxShape.
|
inlinevirtualinherited |
Reimplemented in G3D::BoxShape.
|
inlinevirtualinherited |
Reimplemented in G3D::CapsuleShape.
|
inlinevirtualinherited |
Reimplemented in G3D::CapsuleShape.
|
inlinevirtual |
Center of mass for this object.
Implements G3D::Shape.
|
inlinestaticprotectedinherited |
Like std::make_shared, but works for protected constructors.
Call as createShared<myclass>.
|
inlinevirtualinherited |
Reimplemented in G3D::CylinderShape.
|
inlinevirtualinherited |
Reimplemented in G3D::CylinderShape.
|
inlinevirtual |
A point selected uniformly at random with respect to the surface area of this object.
Not available on the Plane or Ray, which have infinite extent. The normal has unit length and points out of the surface.
Implements G3D::Shape.
|
inlinevirtualinherited |
Reimplemented in G3D::MeshShape.
|
inlinevirtualinherited |
Reimplemented in G3D::PlaneShape.
|
inlinevirtualinherited |
Reimplemented in G3D::PlaneShape.
|
inlinevirtual |
Reimplemented from G3D::Shape.
|
inlinevirtual |
Reimplemented from G3D::Shape.
|
inlinevirtual |
A point selected uniformly at random with respect to the volume of this object.
Not available on objects with infinite extent.
Implements G3D::Shape.
|
inlinevirtualinherited |
Reimplemented in G3D::RayShape.
|
inlinevirtualinherited |
Reimplemented in G3D::RayShape.
|
virtual |
Implements G3D::Shape.
|
inlinevirtualinherited |
Reimplemented in G3D::SphereShape.
|
inlinevirtualinherited |
Reimplemented in G3D::SphereShape.
|
inlinevirtualinherited |
Reimplemented in G3D::TriangleShape.
|
inlinevirtualinherited |
Reimplemented in G3D::TriangleShape.
|
inlinevirtual |
Implements G3D::Shape.
Reimplemented in G3D::MeshShape.
|
inlinevirtual |
Volume of the interior of this object.
Implements G3D::Shape.