#include <opennurbs_point.h>
Public Member Functions | |
ON_3dPointListRef () | |
ON_3dPointListRef (const class ON_Mesh *mesh) | |
Construct a point list that references the mesh vertex list. More... | |
ON_3dPointListRef (const class ON_SimpleArray< ON_3dPoint > &point_array) | |
Construct a point list that references the points in a simple array of ON_3dPoint objects. More... | |
ON_3dPointListRef (const class ON_SimpleArray< ON_3fPoint > &point_array) | |
Construct a point list that references the points in a simple array of ON_3fPoint objects. More... | |
bool | DoublePrecision () const |
unsigned int | GetMeshFacePoints (const class ON_MeshFace *mesh_face, ON_3dPoint face_points[4]) const |
unsigned int | GetMeshNgonPoints (const class ON_MeshNgon *mesh_ngon, size_t ngon_points_capacity, class ON_3dPoint *ngon_points) const |
unsigned int | GetMeshNgonPoints (const class ON_MeshNgon *mesh_ngon, ON_SimpleArray< ON_3dPoint > &ngon_points) const |
const class ON_3dPoint & | GetPoint (unsigned int point_index, double buffer[3]) const |
Copy point location into buffer and return it as an ON_3dPoint. More... | |
unsigned int | GetPoints (int point_index_count, const int *point_index_list, class ON_3dPoint *points) const |
unsigned int | GetPoints (unsigned int point_index_count, const unsigned int *point_index_list, class ON_3dPoint *points) const |
unsigned int | GetPoints (const ON_SimpleArray< int > &point_index_list, ON_SimpleArray< ON_3dPoint > &points) const |
unsigned int | GetPoints (int point_index_count, const int *point_index_list, ON_SimpleArray< ON_3dPoint > &points) const |
unsigned int | GetPoints (unsigned int point_index_count, const unsigned int *point_index_list, ON_SimpleArray< ON_3dPoint > &points) const |
unsigned int | GetQuadPoints (const int quad_point_indices[4], class ON_3dPoint quad_points[4]) const |
unsigned int | GetQuadPoints (const unsigned int quad_point_indices[4], class ON_3dPoint quad_points[4]) const |
unsigned int | GetTrianglePoints (const int triangle_point_indices[3], class ON_3dPoint triangle_points[3]) const |
unsigned int | GetTrianglePoints (const unsigned int triangle_point_indices[3], class ON_3dPoint triangle_points[3]) const |
ON_3dPoint | operator[] (int point_index) const |
ON_3dPoint | operator[] (unsigned int point_index) const |
ON_3dPoint | operator[] (ON__INT64 point_index) const |
ON_3dPoint | operator[] (ON__UINT64 point_index) const |
ON_3dPoint | Point (unsigned int point_index) const |
unsigned int | PointCount () const |
const double * | PointDoubleArray () const |
const float * | PointFloatArray () const |
unsigned int | PointStride () const |
unsigned int | Precision () const |
unsigned int | SetFromDoubleArray (size_t point_count, size_t point_stride, const double *point_array) |
Set this point list to reference points with double coordinates. More... | |
unsigned int | SetFromFloatArray (size_t point_count, size_t point_stride, const float *point_array) |
Set this point list to reference points with float coordinates. More... | |
unsigned int | SetFromMesh (const class ON_Mesh *mesh) |
Set this point list to reference a mesh vertex list. More... | |
bool | SinglePrecision () const |
ON_SimpleArray< ON_3dPoint > | To3dPointArray () const |
ON_SimpleArray< ON_3fPoint > | To3fPointArray () const |
Static Public Member Functions | |
static ON_3dPointListRef | FromDoubleArray (size_t point_count, size_t point_stride, const double *point_array) |
static ON_3dPointListRef | FromFloatArray (size_t point_count, size_t point_stride, const float *point_array) |
static ON_3dPointListRef | FromMesh (const class ON_Mesh *mesh) |
static ON_3dPointListRef | FromPointArray (const class ON_SimpleArray< ON_3dPoint > &point_array) |
static ON_3dPointListRef | FromPointArray (const class ON_SimpleArray< ON_3fPoint > &point_array) |
Static Public Attributes | |
static const ON_3dPointListRef | EmptyPointList |
|
inline |
ON_3dPointListRef::ON_3dPointListRef | ( | const class ON_Mesh * | mesh | ) |
Construct a point list that references the mesh vertex list.
If the mesh has double precision vertices, then the point list will refer to them; otherwise, the point list will refer to the single precision vertices.
ON_3dPointListRef::ON_3dPointListRef | ( | const class ON_SimpleArray< ON_3dPoint > & | point_array | ) |
Construct a point list that references the points in a simple array of ON_3dPoint objects.
ON_3dPointListRef::ON_3dPointListRef | ( | const class ON_SimpleArray< ON_3fPoint > & | point_array | ) |
Construct a point list that references the points in a simple array of ON_3fPoint objects.
bool ON_3dPointListRef::DoublePrecision | ( | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
unsigned int ON_3dPointListRef::GetMeshFacePoints | ( | const class ON_MeshFace * | mesh_face, |
ON_3dPoint | face_points[4] | ||
) | const |
unsigned int ON_3dPointListRef::GetMeshNgonPoints | ( | const class ON_MeshNgon * | mesh_ngon, |
size_t | ngon_points_capacity, | ||
class ON_3dPoint * | ngon_points | ||
) | const |
unsigned int ON_3dPointListRef::GetMeshNgonPoints | ( | const class ON_MeshNgon * | mesh_ngon, |
ON_SimpleArray< ON_3dPoint > & | ngon_points | ||
) | const |
|
inline |
Copy point location into buffer and return it as an ON_3dPoint.
point_index | [in] |
buffer | [out] If point_index is a valid index, the point coordinates are copied to buffer[]; oherwise the buffer coordinates are set to ON_UNSET_VALUE. You must insure buffer is not null, has proper alignment for storing doubles, and is large enough to store three doubles. |
This is the fastest and most efficient way to get a the location of a point into memory you are managing.
unsigned int ON_3dPointListRef::GetPoints | ( | int | point_index_count, |
const int * | point_index_list, | ||
class ON_3dPoint * | points | ||
) | const |
unsigned int ON_3dPointListRef::GetPoints | ( | unsigned int | point_index_count, |
const unsigned int * | point_index_list, | ||
class ON_3dPoint * | points | ||
) | const |
unsigned int ON_3dPointListRef::GetPoints | ( | const ON_SimpleArray< int > & | point_index_list, |
ON_SimpleArray< ON_3dPoint > & | points | ||
) | const |
unsigned int ON_3dPointListRef::GetPoints | ( | int | point_index_count, |
const int * | point_index_list, | ||
ON_SimpleArray< ON_3dPoint > & | points | ||
) | const |
unsigned int ON_3dPointListRef::GetPoints | ( | unsigned int | point_index_count, |
const unsigned int * | point_index_list, | ||
ON_SimpleArray< ON_3dPoint > & | points | ||
) | const |
unsigned int ON_3dPointListRef::GetQuadPoints | ( | const int | quad_point_indices[4], |
class ON_3dPoint | quad_points[4] | ||
) | const |
unsigned int ON_3dPointListRef::GetQuadPoints | ( | const unsigned int | quad_point_indices[4], |
class ON_3dPoint | quad_points[4] | ||
) | const |
unsigned int ON_3dPointListRef::GetTrianglePoints | ( | const int | triangle_point_indices[3], |
class ON_3dPoint | triangle_points[3] | ||
) | const |
unsigned int ON_3dPointListRef::GetTrianglePoints | ( | const unsigned int | triangle_point_indices[3], |
class ON_3dPoint | triangle_points[3] | ||
) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
point_index | [in] |
|
inline |
|
inline |
|
inline |
|
inline |
unsigned int ON_3dPointListRef::Precision | ( | ) | const |
unsigned int ON_3dPointListRef::SetFromDoubleArray | ( | size_t | point_count, |
size_t | point_stride, | ||
const double * | point_array | ||
) |
Set this point list to reference points with double coordinates.
point_count | [in] number of points |
point_stride | [in] (>= 3) number of doubles between points. |
point_array | [in] pointer to the first coordinate of the first point. |
unsigned int ON_3dPointListRef::SetFromFloatArray | ( | size_t | point_count, |
size_t | point_stride, | ||
const float * | point_array | ||
) |
Set this point list to reference points with float coordinates.
point_count | [in] number of points |
point_stride | [in] (>= 3) number of floats between points. |
point_array | [in] pointer to the first coordinate of the first point. |
unsigned int ON_3dPointListRef::SetFromMesh | ( | const class ON_Mesh * | mesh | ) |
Set this point list to reference a mesh vertex list.
mesh | [in] |
bool ON_3dPointListRef::SinglePrecision | ( | ) | const |
ON_SimpleArray<ON_3dPoint> ON_3dPointListRef::To3dPointArray | ( | ) | const |
ON_SimpleArray<ON_3fPoint> ON_3dPointListRef::To3fPointArray | ( | ) | const |
|
static |