MEPP2 Project
SimpleViewerCGALPointSet.inl
Go to the documentation of this file.
1 // Copyright (c) 2012-2019 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published
6 // by the Free Software Foundation; either version 3 of the License,
7 // or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 
14 
15 
16 namespace FEVV {
17 
18 //
19 // SimpleViewer<>::internal_createMesh(...) specialization for FEVV::CGALPointSet
20 // with HalfedgeGraph = FEVV::CGALPointSet and PointMap = FEVV::CGALPointSet
21 //
22 template<>
23 inline void
26  osg::Geode *&geode,
28  PMapsContainer *_pmaps,
29  std::vector< osg::ref_ptr< osg::Geometry > > &geometries,
30  std::vector< osg::ref_ptr< osg::Geometry > > &geometriesL,
31  std::vector< osg::ref_ptr< osg::Geometry > > &geometriesP,
32  std::vector< osg::ref_ptr< osg::Geometry > > &geometries_edges,
33  std::vector< osg::ref_ptr< osg::Geometry > > &geometries_vertices,
34  std::vector< osg::ref_ptr< osg::Geometry > > &geometries_normals,
35  std::vector< osg::ref_ptr< osg::Geometry > > &geometries_custom_vectors,
36  std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays,
37  std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_edges,
38  std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_vertices,
39  std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_normals,
40  std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_custom_vectors,
41  std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays,
42  std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArraysF,
43  std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays_edges,
44  std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays_vertices,
45  std::vector< osg::ref_ptr< osg::Vec3Array > > &tangentsArrays,
46  std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays,
47  std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_edges,
48  std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_vertices,
49  std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_normals,
50  std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_custom_vectors,
51  std::vector< osg::ref_ptr< osg::Vec2Array > > &texcoordsArrays,
53  std::string _mesh_file)
54 {
55  internal_createMesh_pointcloud(geode,
56  _g,
57  _pmaps,
58  geometries,
59  geometriesL,
60  geometriesP,
61  geometries_edges,
62  geometries_vertices,
63  geometries_normals,
64  geometries_custom_vectors,
65  vertexArrays,
66  vertexArrays_edges,
67  vertexArrays_vertices,
68  vertexArrays_normals,
69  vertexArrays_custom_vectors,
70  normalsArrays,
71  normalsArraysF,
72  normalsArrays_edges,
73  normalsArrays_vertices,
74  tangentsArrays,
75  colorsArrays,
76  colorsArrays_edges,
77  colorsArrays_vertices,
78  colorsArrays_normals,
79  colorsArrays_custom_vectors,
80  texcoordsArrays,
81  _pm,
82  _mesh_file);
83 }
84 
85 } // namespace FEVV
FEVV::CGALPointSet
CGAL::Point_set_3< CGALPointSetPoint > CGALPointSet
Definition: DataStructures_cgal_point_set.h:71
DataStructures_cgal_point_set.h
FEVV::PMapsContainer
std::map< std::string, boost::any > PMapsContainer
Definition: properties.h:99
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition: Assert.h:16
FEVV::CGALPointSetPointMap
CGALPointSet::Point_map CGALPointSetPointMap
Definition: Graph_properties_cgal_point_set.h:27
Graph_properties_cgal_point_set.h
FEVV::SimpleViewer::internal_createMesh
void internal_createMesh(osg::Geode *&geode, HalfedgeGraph *_g, PMapsContainer *_pmaps, std::vector< osg::ref_ptr< osg::Geometry > > &geometries, std::vector< osg::ref_ptr< osg::Geometry > > &geometriesL, std::vector< osg::ref_ptr< osg::Geometry > > &geometriesP, std::vector< osg::ref_ptr< osg::Geometry > > &geometries_edges, std::vector< osg::ref_ptr< osg::Geometry > > &geometries_vertices, std::vector< osg::ref_ptr< osg::Geometry > > &geometries_normals, std::vector< osg::ref_ptr< osg::Geometry > > &geometries_custom_vectors, std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays, std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_edges, std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_vertices, std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_normals, std::vector< osg::ref_ptr< osg::Vec3Array > > &vertexArrays_custom_vectors, std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays, std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArraysF, std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays_edges, std::vector< osg::ref_ptr< osg::Vec3Array > > &normalsArrays_vertices, std::vector< osg::ref_ptr< osg::Vec3Array > > &tangentsArrays, std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays, std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_edges, std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_vertices, std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_normals, std::vector< osg::ref_ptr< osg::Vec4Array > > &colorsArrays_custom_vectors, std::vector< osg::ref_ptr< osg::Vec2Array > > &texcoordsArrays, PointMap *_pm, std::string _mesh_file=std::string(""))
Definition: SimpleViewer.inl:616