#include <stl_shape.h>
|
| static std::shared_ptr< StlShape > | fromStlFile (const std::string &path) |
| |
| static std::vector< float > | readStl (const std::string &path) |
| |
◆ StlShape()
| StlShape::StlShape |
( |
std::vector< float > |
points | ) |
|
|
explicit |
Конструктор
- Parameters
-
| points | - список вершин модели |
◆ ~StlShape()
◆ fromStlFile()
| std::shared_ptr< StlShape > StlShape::fromStlFile |
( |
const std::string & |
path | ) |
|
|
static |
Получить STL-модель из файла
- Parameters
-
| path | - путь к файлу модели |
◆ getDTShape()
| DT_ShapeHandle bmpf::StlShape::getDTShape |
( |
| ) |
const |
|
inline |
Получить поверхность модели
- Returns
- поверхность модели
◆ getPointList()
| std::vector<float>& bmpf::StlShape::getPointList |
( |
| ) |
|
|
inline |
Получить список вершин модели
- Returns
- список вершин модели
◆ getPolygonCnt()
| unsigned int bmpf::StlShape::getPolygonCnt |
( |
| ) |
const |
|
inline |
Получить количество полигонов
- Returns
- количество полигонов
◆ paintGL()
| void StlShape::paintGL |
( |
| ) |
const |
Рисование модели средствами OpenGl
◆ readStl()
| std::vector< float > StlShape::readStl |
( |
const std::string & |
path | ) |
|
|
static |
Прочитать точки STL-модели из файла
- Parameters
-
| path | - путь к файлу модели |
- Returns
- список координат полигона вектор нормали и координаты вершин: nx, ny, nz, ax, ay, az, bx, by, bz, cx, cy, cz по списку матриц состояния
The documentation for this class was generated from the following files:
- project/core/collider/include/base/stl_shape.h
- project/core/collider/src/base/stl_shape.cpp