https://mooseframework.inl.gov
Public Member Functions | List of all members
GeometryBase Class Referenceabstract

Base class for geometry primitives. More...

#include <GeometryBase.h>

Inheritance diagram for GeometryBase:
[legend]

Public Member Functions

virtual ~GeometryBase ()=default
 
virtual bool intersect (const LineSegment &line_segment) const =0
 Check if a line segment intersects this geometry. More...
 
virtual Ball computeBoundingBall () const =0
 Compute a bounding ball for this geometry. More...
 

Detailed Description

Base class for geometry primitives.

Definition at line 18 of file GeometryBase.h.

Constructor & Destructor Documentation

◆ ~GeometryBase()

virtual GeometryBase::~GeometryBase ( )
virtualdefault

Member Function Documentation

◆ computeBoundingBall()

virtual Ball GeometryBase::computeBoundingBall ( ) const
pure virtual

Compute a bounding ball for this geometry.

Sphere in 3D, circle in 2D. The ball should fully contain the geometry.

Implemented in LineSegment, Ball, and Triangle.

◆ intersect()

virtual bool GeometryBase::intersect ( const LineSegment line_segment) const
pure virtual

Check if a line segment intersects this geometry.

Implemented in LineSegment, Ball, and Triangle.


The documentation for this class was generated from the following file: