MeshLib C++ Docs
Loading...
Searching...
No Matches
MRCurve.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRVector3.h"
5
6namespace MR
7{
10
11
13{
14 Vector3f pos;
15 Vector3f dir;
16 Vector3f snorm;
17};
18
20{
22 std::function<CurvePoint( float )> func;
23
25 float totalLength = 1.0f;
26
28 MR_BIND_PREFER_UNLOCK_GIL_WHEN_USED_AS_PARAM
29};
30
32using CurvePoints = std::vector<CurvePoint>;
33
34}
float totalLength
total length of the given curve
Definition MRCurve.h:25
std::function< CurvePoint(float)> func
curve given as a function: position along curve -> point
Definition MRCurve.h:22
std::vector< CurvePoint > CurvePoints
curve given as a number of points on it samples at arbitrary steps
Definition MRCurve.h:32
Vector3f pos
position on the curve
Definition MRCurve.h:14
Vector3f snorm
the normal of the surface where the curve is located
Definition MRCurve.h:16
Vector3f dir
direction along the curve
Definition MRCurve.h:15
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRCurve.h:20
Definition MRCurve.h:13