35#ifndef NEKTAR_SPATIALDOMAINS_CADSYSTEM_OCE_CADSURFOCE
36#define NEKTAR_SPATIALDOMAINS_CADSYSTEM_OCE_CADSURFOCE
52 static std::string
key;
64 std::array<NekDouble, 4>
GetBounds()
override;
67 std::array<NekDouble, 3>
N(std::array<NekDouble, 2> uv)
override;
68 std::array<NekDouble, 9>
D1(std::array<NekDouble, 2> uv)
override;
69 std::array<NekDouble, 18>
D2(std::array<NekDouble, 2> uv)
override;
70 std::array<NekDouble, 3>
P(std::array<NekDouble, 2> uv)
override;
73 std::array<NekDouble, 2>
locuv(std::array<NekDouble, 3> p,
78 std::array<NekDouble, 3> &loc)
override;
83 std::array<NekDouble, 2>
locuvFrom(std::array<NekDouble, 3> p,
84 std::array<NekDouble, 2> guess,
89 std::array<NekDouble, 2>
locuv(std::array<NekDouble, 3> p,
NekDouble &dist,
95 void Test(std::array<NekDouble, 2> uv)
override;
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
base class for a cad surface
bool IsPlanar() override
Is the surface defined by a planar surface (i.e not nurbs and is flat)
void Test(std::array< NekDouble, 2 > uv) override
Function which tests the the value of uv used is within the surface.
Handle(Geom_Surface) m_s
OpenCascade object for surface.
std::array< NekDouble, 2 > locuv(std::array< NekDouble, 3 > p, NekDouble &dist) override
Performs a reverse look up to find u,v and x,y,z. if xyz is off the surface it will return the closes...
NekDouble Curvature(std::array< NekDouble, 2 > uv) override
returns curvature at point uv
TopoDS_Shape m_shape
original shape
std::array< NekDouble, 6 > BoundingBox() override
Returns the bounding box of the surface.
std::array< NekDouble, 4 > m_bounds
parametric bounds
void Initialise(int i, TopoDS_Shape in)
NekDouble CurvatureAndPosition(std::array< NekDouble, 2 > uv, std::array< NekDouble, 3 > &loc) override
std::array< NekDouble, 2 > locuvOnCurve(const CADCurveSharedPtr &curve, NekDouble t) override
std::array< NekDouble, 18 > D2(std::array< NekDouble, 2 > uv) override
Get the set of second derivatives at parametric point u,v.
ShapeAnalysis_Surface * m_sas
locuv object (stored because it gets faster with stored information)
std::array< NekDouble, 9 > D1(std::array< NekDouble, 2 > uv) override
Get the set of first derivatives at parametric point u,v.
static CADSurfSharedPtr create()
bool m_isTransfiniteSurf
True if we're a transfinite surface (used for Geo)
std::array< NekDouble, 2 > locuvFrom(std::array< NekDouble, 3 > p, std::array< NekDouble, 2 > guess, NekDouble &dist) override
Curvature and position at uv together.
std::array< NekDouble, 4 > GetBounds() override
Get the limits of the parametric space for the surface.
BRepTopAdaptor_FClass2d * m_2Dclass
std::shared_ptr< CADCurve > CADCurveSharedPtr
std::shared_ptr< CADSurf > CADSurfSharedPtr