23#ifndef VCL_MESH_COMPONENTS_TRANSFORM_MATRIX_H
24#define VCL_MESH_COMPONENTS_TRANSFORM_MATRIX_H
26#include "bases/component.h"
28#include <vclib/concepts/mesh/components/transform_matrix.h>
29#include <vclib/space/core/matrix.h>
61template<
typename Scalar,
typename ParentElemType =
void,
bool OPT = false>
64 TransformMatrix<Scalar, ParentElemType, OPT>,
65 CompId::TRANSFORM_MATRIX,
68 !std::is_same_v<ParentElemType, void>,
71 using Base = Component<
73 CompId::TRANSFORM_MATRIX,
76 !std::is_same_v<ParentElemType, void>,
92 if constexpr (!Base::IS_VERTICAL) {
125 template<
typename Element>
126 void importFrom(
const Element& e,
bool =
true)
133 void serialize(std::ostream& os)
const {
transformMatrix().serialize(os); }
135 void deserialize(std::istream& is) {
transformMatrix().deserialize(is); }
153bool isTransformMatrixAvailableOn(
const ElementOrMeshConcept
auto& element)
155 return isComponentAvailableOn<CompId::TRANSFORM_MATRIX>(element);
172template<
typename ElementType =
void,
bool OPT = false>
187template<
typename ElementType =
void,
bool OPT = false>
The Element class.
Definition element.h:57
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43