I/O Functions for the GLTF File Format.
|
| template<typename PointRange , typename PolygonRange > |
| bool | CGAL::IO::read_GLTF (const std::string &filename, PointRange &points, PolygonRange &polygons) |
| | reads the content of the file fname into points and polygons, using the GLTF File Format.
|
| |
◆ read_GLTF()
template<typename PointRange , typename PolygonRange >
| bool CGAL::IO::read_GLTF |
( |
const std::string & |
filename, |
|
|
PointRange & |
points, |
|
|
PolygonRange & |
polygons |
|
) |
| |
#include <CGAL/IO/GLTF.h>
reads the content of the file fname into points and polygons, using the GLTF File Format.
- Attention
- The polygon soup is not cleared, and the data from the file are appended.
- Template Parameters
-
- Parameters
-
| filename | the path to the input file |
| points | points of the soup of polygons |
| polygons | a range of polygons. Each element in it describes a polygon using the indices of the points in points. |
- Returns
true if the reading was successful, false otherwise.