20#ifndef LIBREPCB_CORE_OCCMODEL_H
21#define LIBREPCB_CORE_OCCMODEL_H
26#include "../types/angle.h"
27#include "../types/length.h"
28#include "../types/point.h"
58 typedef std::tuple<qreal, qreal, qreal>
Color;
78 const QVector<
Path>& holes,
82 static QByteArray
minifyStep(const QByteArray& content);
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:129
3D model implemented with OpenCascade
Definition: occmodel.h:51
static std::unique_ptr< OccModel > createBoard(const Path &outline, const QVector< Path > &holes, const PositiveLength &thickness, const QColor &color)
Definition: occmodel.cpp:542
static bool sOutputVerbosityConfigured
Definition: occmodel.h:94
static QString cleanString(const QString &str)
Definition: occmodel.cpp:818
static void throwNotAvailable()
Definition: occmodel.cpp:824
static QByteArray minifyStep(const QByteArray &content)
Definition: occmodel.cpp:668
static std::unique_ptr< OccModel > loadStep(const QByteArray content)
Definition: occmodel.cpp:621
QMap< Color, QVector< QVector3D > > tesselate() const
Definition: occmodel.cpp:456
static bool isAvailable() noexcept
Definition: occmodel.cpp:485
static void setVerboseOutput(bool verbose) noexcept
Definition: occmodel.cpp:498
OccModel() noexcept=delete
void saveAsStep(const QString &name, const FilePath &fp) const
Definition: occmodel.cpp:424
static std::unique_ptr< OccModel > createAssembly(const QString &name)
Definition: occmodel.cpp:511
static QString getOccVersionString() noexcept
Definition: occmodel.cpp:489
std::unique_ptr< Data > mImpl
Definition: occmodel.h:96
std::tuple< qreal, qreal, qreal > Color
Definition: occmodel.h:58
void addToAssembly(const OccModel &model, const Point3D &pos, const Angle3D &rot, const Transform &transform, const QString &name)
Definition: occmodel.cpp:301
static void initOpenCascade()
Definition: occmodel.cpp:800
The Path class represents a list of vertices connected by straight lines or circular arc segments.
Definition: path.h:58
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
std::tuple< Length, Length, Length > Point3D
Definition: length.h:989
std::tuple< Angle, Angle, Angle > Angle3D
Definition: angle.h:461
Definition: occmodel.cpp:85