API Documentation
Loading...
Searching...
No Matches
Smoothing.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: Design
28File: Smoothing
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/Geometry.h>
34namespace NDEVR
35{
36 class ProgressInfo;
37
38 /**--------------------------------------------------------------------------------------------------
39 \brief Contains basic logic to smooth 3D meshes.
40 **/
42 {
43 public:
44 static void ClearSmoothing(Geometry& geo, const Geometry::SmoothingParameters& smoothing_parameters);
45 static void LaplacianSmoothing(Geometry& geo, const Geometry::SmoothingParameters& smoothing_parameters);
46 static void CotangentLaplacianSmoothing(Geometry& geo, const Geometry::SmoothingParameters& smoothing_parameters);
47 static void NormalSmoothing(Geometry& geo, NormalMode normal_mode, const Angle<fltp08>& max_smooth_angle, const void* lock, ProgressInfo* log);
48 protected:
49 static void RestoreGeo(Geometry& geo, const Buffer<Vector<3, fltp08>>& verts, GeometryPositionModRestore& restore, const void* lock, ProgressInfo* log);
50 };
51}
52
53
54
The primary angle storage class for this API. Stores an angle in an optimized format.
Definition StringStream.h:540
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
A core class within the model heirarchy containing vertex-based data (Usually 3D data) within a set c...
Definition Geometry.h:64
Class to easily restore calculated data in a Geometry after a location altering process.
Definition Geometry.h:1643
A light-weight base class for Log that allows processes to update, without the need for additional in...
Definition ProgressInfo.hpp:48
Contains basic logic to smooth 3D meshes.
Definition Smoothing.h:42
static void RestoreGeo(Geometry &geo, const Buffer< Vector< 3, fltp08 > > &verts, GeometryPositionModRestore &restore, const void *lock, ProgressInfo *log)
static void LaplacianSmoothing(Geometry &geo, const Geometry::SmoothingParameters &smoothing_parameters)
static void CotangentLaplacianSmoothing(Geometry &geo, const Geometry::SmoothingParameters &smoothing_parameters)
static void NormalSmoothing(Geometry &geo, NormalMode normal_mode, const Angle< fltp08 > &max_smooth_angle, const void *lock, ProgressInfo *log)
static void ClearSmoothing(Geometry &geo, const Geometry::SmoothingParameters &smoothing_parameters)
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
Definition ACIColor.h:37
NormalMode
Definition DesignObjectBase.h:105
Definition Geometry.h:217