Mantid
Loading...
Searching...
No Matches
Namespaces | Functions
MeshObjectCommon.h File Reference
#include "MantidGeometry/DllConfig.h"
#include "MantidGeometry/Objects/Track.h"
#include "MantidKernel/V3D.h"
#include <vector>

Go to the source code of this file.

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::Geometry
 
namespace  Mantid::Geometry::MeshObjectCommon
 MeshObjectCommon : Performs functions common to 3D and 2D closed meshes.
 

Functions

MANTID_GEOMETRY_DLL void Mantid::Geometry::MeshObjectCommon::checkVertexLimit (size_t nVertices)
 
MANTID_GEOMETRY_DLL const BoundingBox & Mantid::Geometry::MeshObjectCommon::getBoundingBox (const std::vector< Kernel::V3D > &vertices, BoundingBox &cacheBB)
 Takes input vertices and calculates bounding box. More...
 
MANTID_GEOMETRY_DLL void Mantid::Geometry::MeshObjectCommon::getBoundingBox (const std::vector< Kernel::V3D > &vertices, BoundingBox &cacheBB, double &xmax, double &ymax, double &zmax, double &xmin, double &ymin, double &zmin)
 From vertices calculates the bounding box. More...
 
MANTID_GEOMETRY_DLL double Mantid::Geometry::MeshObjectCommon::getTriangleSolidAngle (const Kernel::V3D &a, const Kernel::V3D &b, const Kernel::V3D &c, const Kernel::V3D &observer)
 Find the solid angle of a triangle defined by vectors a,b,c from point "observer". More...
 
MANTID_GEOMETRY_DLL std::vector< double > Mantid::Geometry::MeshObjectCommon::getVertices (const std::vector< Kernel::V3D > &vertices)
 getVertices converts vector Kernel::V3D to vector doubles. More...
 
MANTID_GEOMETRY_DLL bool Mantid::Geometry::MeshObjectCommon::isOnTriangle (const Kernel::V3D &point, const Kernel::V3D &v1, const Kernel::V3D &v2, const Kernel::V3D &v3)
 isOnTriangle More...
 
MANTID_GEOMETRY_DLL bool Mantid::Geometry::MeshObjectCommon::rayIntersectsTriangle (const Kernel::V3D &start, const Kernel::V3D &direction, const Kernel::V3D &v1, const Kernel::V3D &v2, const Kernel::V3D &v3, Kernel::V3D &intersection, TrackDirection &entryExit)
 Get intersection points and their in out directions on the given ray. More...