Kstars

MeshIterator.cpp
1
2#include "MeshIterator.h"
3
4#include "HTMesh.h"
5#include "MeshBuffer.h"
6
7#include <iostream>
8
9MeshIterator::MeshIterator(HTMesh *mesh, BufNum bufNum)
10{
11 cnt = 0;
12 MeshBuffer *buffer = mesh->meshBuffer(bufNum);
13 m_size = buffer->size();
14 index = buffer->buffer();
15}
HTMesh was originally intended to be a simple interface to the HTM library for the KStars project tha...
Definition HTMesh.h:57
MeshBuffer * meshBuffer(BufNum bufNum=0)
returns a pointer to the MeshBuffer specified by bufNum.
Definition HTMesh.cpp:254
The sole purpose of a MeshBuffer is to hold storage space for the results of an HTM inetersection and...
Definition MeshBuffer.h:24
const Trixel * buffer() const
the location of the buffer for reading
Definition MeshBuffer.h:40
int size() const
the number of trixels in the result set
Definition MeshBuffer.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:51:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.