16 #ifndef __GEO_Vertex_H__
17 #define __GEO_Vertex_H__
35 : GA_GBElement(index_map, offset) { }
39 : GA_GBElement(src) { }
85 copyAttribData(src, dict);
92 copyVertex(src, pt->getMapOffset(), dict);
98 copyVertex(src, src.getPointOffset(), dict);
114 void setPos3D(
float x,
float y,
float z,
float w);
119 void setPos2D(
float x,
float y,
float w);
285 void *
operator new[](
size_t size);
289 void operator delete[](
void *p);
UT_Vector2 getPos2(GA_Offset ptoff) const
The ptoff passed is the point offset.
A class to manage an ordered array which has fixed offset handles.
SYS_FORCE_INLINE GA_Offset getPointOffset(GA_Size i) const
GA_Offset getMapOffset() const
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
const UT_Vector3 getPos2D() const
#define SYS_DEPRECATED_PUSH_DISABLE()
UT_Vector4 getPos4(GA_Offset ptoff) const
The ptoff passed is the point offset.
#define SYS_DEPRECATED_POP_DISABLE()
GLdouble GLdouble GLdouble z
SYS_FORCE_INLINE void setPointOffset(GA_Size i, GA_Offset ptoff)
constexpr SYS_FORCE_INLINE T & z() noexcept
GA_GBElement & operator=(const GA_GBElement &src)
SYS_FORCE_INLINE UT_Vector3 getPos3(GA_Offset ptoff) const
The ptoff passed is the point offset.
const UT_Vector2 getPos2() const
const UT_Vector4 getPos3D() const
void setPos3D(const UT_Vector4 &p)
SYS_FORCE_INLINE UT_Vector3D getPos3D(GA_Size i) const
constexpr SYS_FORCE_INLINE T & x() noexcept
void setPos4(GA_Offset ptoff, const UT_Vector4 &pos)
Set P from a UT_Vector4.
GA_GBVertex(const GA_GBVertex &src)
bool operator==(const GA_GBVertex &src) const
fpreal getPw(GA_Offset ptoff) const
Get the homogeneous coordinate for a point.
void setPw(GA_Offset ptoff, fpreal w)
Set the homogeneous coordinate for a point.
GA_Detail & getDetail() const
Provide access to the GA_Detail containing this element.
void setPos2D(const UT_Vector3 &p)
#define SYS_DEPRECATED_HDK(__V__)
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
GA_GBVertex & operator=(const GA_GBVertex &src)
SYS_FORCE_INLINE GA_Index getPointIndex(GA_Size i) const
SYS_FORCE_INLINE void setPos3(GA_Offset ptoff, const UT_Vector3 &pos)
Set P from a UT_Vector3.
bool operator==(const GA_GBElement &src) const
GLubyte GLubyte GLubyte GLubyte w
constexpr SYS_FORCE_INLINE T & y() noexcept
void setPos2(GA_Offset ptoff, const UT_Vector2 &pos)
Set P from a UT_Vector2.
constexpr SYS_FORCE_INLINE T & y() noexcept
GA_GBVertex(const GA_IndexMap &index_map, GA_Offset offset)
constexpr SYS_FORCE_INLINE T & x() noexcept
const GA_IndexMap & getIndexMap() const
Provide access to the GA_IndexMap containing this element.