add method to get points property handle in AttribKernel
This commit is contained in:
@@ -105,10 +105,26 @@ public:
|
|||||||
FAttribs = MeshItems::FAttribs
|
FAttribs = MeshItems::FAttribs
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef VPropHandleT<VertexData> DataVPropHandle;
|
typedef VPropHandleT<VertexData> DataVPropHandle;
|
||||||
typedef HPropHandleT<HalfedgeData> DataHPropHandle;
|
typedef HPropHandleT<HalfedgeData> DataHPropHandle;
|
||||||
typedef EPropHandleT<EdgeData> DataEPropHandle;
|
typedef EPropHandleT<EdgeData> DataEPropHandle;
|
||||||
typedef FPropHandleT<FaceData> DataFPropHandle;
|
typedef FPropHandleT<FaceData> DataFPropHandle;
|
||||||
|
|
||||||
|
typedef VPropHandleT<Point> PointsPropertyHandle;
|
||||||
|
typedef VPropHandleT<Normal> VertexNormalsPropertyHandle;
|
||||||
|
typedef VPropHandleT<Color> VertexColorsPropertyHandle;
|
||||||
|
typedef VPropHandleT<TexCoord1D> VertexTexCoords1DPropertyHandle;
|
||||||
|
typedef VPropHandleT<TexCoord2D> VertexTexCoords2DPropertyHandle;
|
||||||
|
typedef VPropHandleT<TexCoord3D> VertexTexCoords3DPropertyHandle;
|
||||||
|
typedef HPropHandleT<TexCoord1D> HalfedgeTexCoords1DPropertyHandle;
|
||||||
|
typedef HPropHandleT<TexCoord2D> HalfedgeTexCoords2DPropertyHandle;
|
||||||
|
typedef HPropHandleT<TexCoord3D> HalfedgeTexCoords3DPropertyHandle;
|
||||||
|
typedef EPropHandleT<Color> EdgeColorsPropertyHandle;
|
||||||
|
typedef HPropHandleT<Normal> HalfedgeNormalsPropertyHandle;
|
||||||
|
typedef HPropHandleT<Color> HalfedgeColorsPropertyHandle;
|
||||||
|
typedef FPropHandleT<Normal> FaceNormalsPropertyHandle;
|
||||||
|
typedef FPropHandleT<Color> FaceColorsPropertyHandle;
|
||||||
|
typedef FPropHandleT<TextureIndex> FaceTextureIndexPropertyHandle;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@@ -240,6 +256,9 @@ public:
|
|||||||
void set_point(VertexHandle _vh, const Point& _p)
|
void set_point(VertexHandle _vh, const Point& _p)
|
||||||
{ this->property(points_, _vh) = _p; }
|
{ this->property(points_, _vh) = _p; }
|
||||||
|
|
||||||
|
PointsPropertyHandle& points_property_handle()
|
||||||
|
{ return points_; }
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------------ vertex normals
|
//------------------------------------------------------------ vertex normals
|
||||||
|
|
||||||
@@ -592,24 +611,6 @@ public:
|
|||||||
bool has_face_colors() const { return face_colors_.is_valid(); }
|
bool has_face_colors() const { return face_colors_.is_valid(); }
|
||||||
bool has_face_texture_index() const { return face_texture_index_.is_valid(); }
|
bool has_face_texture_index() const { return face_texture_index_.is_valid(); }
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
typedef VPropHandleT<Point> PointsPropertyHandle;
|
|
||||||
typedef VPropHandleT<Normal> VertexNormalsPropertyHandle;
|
|
||||||
typedef VPropHandleT<Color> VertexColorsPropertyHandle;
|
|
||||||
typedef VPropHandleT<TexCoord1D> VertexTexCoords1DPropertyHandle;
|
|
||||||
typedef VPropHandleT<TexCoord2D> VertexTexCoords2DPropertyHandle;
|
|
||||||
typedef VPropHandleT<TexCoord3D> VertexTexCoords3DPropertyHandle;
|
|
||||||
typedef HPropHandleT<TexCoord1D> HalfedgeTexCoords1DPropertyHandle;
|
|
||||||
typedef HPropHandleT<TexCoord2D> HalfedgeTexCoords2DPropertyHandle;
|
|
||||||
typedef HPropHandleT<TexCoord3D> HalfedgeTexCoords3DPropertyHandle;
|
|
||||||
typedef EPropHandleT<Color> EdgeColorsPropertyHandle;
|
|
||||||
typedef HPropHandleT<Normal> HalfedgeNormalsPropertyHandle;
|
|
||||||
typedef HPropHandleT<Color> HalfedgeColorsPropertyHandle;
|
|
||||||
typedef FPropHandleT<Normal> FaceNormalsPropertyHandle;
|
|
||||||
typedef FPropHandleT<Color> FaceColorsPropertyHandle;
|
|
||||||
typedef FPropHandleT<TextureIndex> FaceTextureIndexPropertyHandle;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//standard vertex properties
|
//standard vertex properties
|
||||||
PointsPropertyHandle points_pph() const
|
PointsPropertyHandle points_pph() const
|
||||||
|
|||||||
Reference in New Issue
Block a user