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:127
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:541
static bool sOutputVerbosityConfigured
Definition occmodel.h:94
static QString cleanString(const QString &str)
Definition occmodel.cpp:817
static void throwNotAvailable()
Definition occmodel.cpp:823
static QByteArray minifyStep(const QByteArray &content)
Definition occmodel.cpp:667
static std::unique_ptr< OccModel > loadStep(const QByteArray content)
Definition occmodel.cpp:620
QMap< Color, QVector< QVector3D > > tesselate() const
Definition occmodel.cpp:455
static bool isAvailable() noexcept
Definition occmodel.cpp:484
static void setVerboseOutput(bool verbose) noexcept
Definition occmodel.cpp:497
OccModel() noexcept=delete
void saveAsStep(const QString &name, const FilePath &fp) const
Definition occmodel.cpp:423
static std::unique_ptr< OccModel > createAssembly(const QString &name)
Definition occmodel.cpp:510
static QString getOccVersionString() noexcept
Definition occmodel.cpp:488
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:300
static void initOpenCascade()
Definition occmodel.cpp:799
The Path class represents a list of vertices connected by straight lines or circular arc segments.
Definition path.h:57
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
std::tuple< Length, Length, Length > Point3D
Definition length.h:987
std::tuple< Angle, Angle, Angle > Angle3D
Definition angle.h:458
Definition occmodel.cpp:84