📄 gtsinterface.h
字号:
// Copyright (C) 2006 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added: 2006-06-21// Last changed: 2006-06-22#ifndef __GTS_INTERFACE_H#define __GTS_INTERFACE_H#include <dolfin/common/types.h>// Forward declarationsstruct _GtsBBox;typedef _GtsBBox GtsBBox;struct _GNode;typedef _GNode GNode;namespace dolfin{ class Mesh; class Point; class Cell; template <class T> class Array; class GTSInterface { public: GTSInterface(Mesh& m); ~GTSInterface(void); /// Compute cells overlapping c void overlap(Cell& c, Array<uint>& cells); /// Compute cells overlapping p void overlap(Point& p, Array<uint>& cells); /// Compute cells overlapping bounding box constructed from p1 and p2 void overlap(Point& p1, Point& p2, Array<uint>& cells); private: GTSInterface(void); GTSInterface(const GTSInterface&); /// Construct bounding box of cell GtsBBox* bboxCell(Cell&); /// Construct bounding box of a single point GtsBBox* bboxPoint(const Point&); /// Construct bounding box of a pair of points GtsBBox* bboxPoint(const Point&, const Point&); /// Construct hierarchical space partition tree of mesh void buildCellTree(void); Mesh& mesh; GNode* tree; };}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -