Optimised access to point lists for triangle segments and triangle nodes.
This commit is contained in:
parent
46b662bf83
commit
d7d3f53442
2 changed files with 8 additions and 5 deletions
|
@ -18,7 +18,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
//
|
//
|
||||||
// $Id: trinodes.hxx,v 1.7 2004-11-19 22:25:50 curt Exp $
|
// $Id: trinodes.hxx,v 1.7 2004/11/19 22:25:50 curt Exp $
|
||||||
|
|
||||||
|
|
||||||
#ifndef _TRINODES_HXX
|
#ifndef _TRINODES_HXX
|
||||||
|
@ -88,7 +88,8 @@ public:
|
||||||
int find( const Point3D& p ) const;
|
int find( const Point3D& p ) const;
|
||||||
|
|
||||||
// return the master node list
|
// return the master node list
|
||||||
inline point_list get_node_list() const { return node_list; }
|
inline point_list& get_node_list() { return node_list; }
|
||||||
|
inline const point_list& get_node_list() const { return node_list; }
|
||||||
inline void set_node_list( point_list pl ) { node_list = pl; }
|
inline void set_node_list( point_list pl ) { node_list = pl; }
|
||||||
|
|
||||||
// return the ith point
|
// return the ith point
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
//
|
//
|
||||||
// $Id: trisegs.hxx,v 1.4 2004-11-19 22:25:50 curt Exp $
|
// $Id: trisegs.hxx,v 1.4 2004/11/19 22:25:50 curt Exp $
|
||||||
|
|
||||||
|
|
||||||
#ifndef _TRISEGS_HXX
|
#ifndef _TRISEGS_HXX
|
||||||
|
@ -111,10 +111,12 @@ public:
|
||||||
const TGTriSeg& s );
|
const TGTriSeg& s );
|
||||||
|
|
||||||
// return the master segment list
|
// return the master segment list
|
||||||
inline triseg_list get_seg_list() const { return seg_list; }
|
inline triseg_list& get_seg_list() { return seg_list; }
|
||||||
|
inline const triseg_list& get_seg_list() const { return seg_list; }
|
||||||
|
|
||||||
// return the ith segment
|
// return the ith segment
|
||||||
inline TGTriSeg get_seg( int i ) const { return seg_list[i]; }
|
inline TGTriSeg& get_seg( int i ) { return seg_list[i]; }
|
||||||
|
inline const TGTriSeg& get_seg( int i ) const { return seg_list[i]; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue