Commit a7d3a16a authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

Corrected documentation for mesh_cast related stuff.


git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@959 fdac6126-5c0c-442c-9429-916003d36597
parent bbb3a55e
......@@ -153,15 +153,15 @@ template<typename LhsTraits, typename RhsTraits> struct ItemsEquality {
*
* Example:
* @code{.cpp}
* struct Traits1 : public OpenMesh::DefaultTraits {
* struct TriTraits1 : public OpenMesh::DefaultTraits {
* typedef Vec3d Point;
* }
* struct Traits2 : public OpenMesh::DefaultTraits {
* };
* struct TriTraits2 : public OpenMesh::DefaultTraits {
* typedef Vec3d Point;
* }
* struct Traits3 : public OpenMesh::DefaultTraits {
* };
* struct TriTraits3 : public OpenMesh::DefaultTraits {
* typedef Vec3f Point;
* }
* };
*
* TriMesh_ArrayKernelT<TriTraits1> a;
* TriMesh_ArrayKernelT<TriTraits2> &b = MeshCast<TriMesh_ArrayKernelT<TriTraits2>&, TriMesh_ArrayKernelT<TriTraits1>&>::cast(a); // OK
......
......@@ -57,6 +57,7 @@
#include <OpenMesh/Core/System/config.h>
#include <OpenMesh/Core/Geometry/MathDefs.hh>
#include <OpenMesh/Core/Mesh/PolyConnectivity.hh>
#include <OpenMesh/Core/Mesh/FinalMeshItemsT.hh>
#include <vector>
......@@ -497,15 +498,15 @@ public:
*
* Example:
* @code{.cpp}
* struct Traits1 : public OpenMesh::DefaultTraits {
* struct TriTraits1 : public OpenMesh::DefaultTraits {
* typedef Vec3d Point;
* }
* struct Traits2 : public OpenMesh::DefaultTraits {
* };
* struct TriTraits2 : public OpenMesh::DefaultTraits {
* typedef Vec3d Point;
* }
* struct Traits3 : public OpenMesh::DefaultTraits {
* };
* struct TriTraits3 : public OpenMesh::DefaultTraits {
* typedef Vec3f Point;
* }
* };
*
* TriMesh_ArrayKernelT<TriTraits1> a;
* TriMesh_ArrayKernelT<TriTraits2> &b = mesh_cast<TriMesh_ArrayKernelT<TriTraits2>&>(a); // OK
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment