MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMovementBuildBody.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3#include "MRVector3.h"
4#include <optional>
5
6namespace MR
7{
8
9struct MovementBuildBodyParams
10{
14 bool allowRotation{ true };
15
18 std::optional<Vector3f> center;
19
22 std::optional<Vector3f> bodyNormal;
23
26 std::optional<Vector3f> bodyUpDir;
27
30 const Contours3f* trajectoryNormals{ nullptr };
31
33 const AffineXf3f* b2tXf{ nullptr };
34
36 bool startMeshFromBody{ false };
37};
38
41[[nodiscard]] MRMESH_API Mesh makeMovementBuildBody( const Contours3f& body, const Contours3f& trajectory,
42 const MovementBuildBodyParams& params = {} );
43
44}
45
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRMesh/MRMesh.h:23
Definition MRMovementBuildBody.h:10
new unsafe MR.Std.? Const_Vector_StdVectorMRVector3f trajectoryNormals
new unsafe MR.Std.Optional_MRVector3f center
new unsafe MR.Std.Optional_MRVector3f bodyNormal
new unsafe MR.? ConstBox_AffineXf3f b2tXf
new unsafe ref bool startMeshFromBody
new unsafe MR.Std.Optional_MRVector3f bodyUpDir
new unsafe ref bool allowRotation
Definition MRCameraOrientationPlugin.h:8
MRMESH_API Mesh makeMovementBuildBody(const Contours3f &body, const Contours3f &trajectory, const MovementBuildBodyParams &params={})