Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenMesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenMesh
OpenMesh
Commits
3b906e51
Commit
3b906e51
authored
Jan 11, 2017
by
Janis Born
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use double as default RealType for subdividers
parent
a1ee66ac
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
17 deletions
+16
-17
src/OpenMesh/Tools/Subdivider/Uniform/CatmullClarkT.hh
src/OpenMesh/Tools/Subdivider/Uniform/CatmullClarkT.hh
+1
-1
src/OpenMesh/Tools/Subdivider/Uniform/CompositeLoopT.hh
src/OpenMesh/Tools/Subdivider/Uniform/CompositeLoopT.hh
+1
-1
src/OpenMesh/Tools/Subdivider/Uniform/CompositeSqrt3T.hh
src/OpenMesh/Tools/Subdivider/Uniform/CompositeSqrt3T.hh
+1
-1
src/OpenMesh/Tools/Subdivider/Uniform/LongestEdgeT.hh
src/OpenMesh/Tools/Subdivider/Uniform/LongestEdgeT.hh
+1
-1
src/OpenMesh/Tools/Subdivider/Uniform/LoopT.hh
src/OpenMesh/Tools/Subdivider/Uniform/LoopT.hh
+1
-1
src/OpenMesh/Tools/Subdivider/Uniform/ModifiedButterFlyT.hh
src/OpenMesh/Tools/Subdivider/Uniform/ModifiedButterFlyT.hh
+1
-1
src/OpenMesh/Tools/Subdivider/Uniform/Sqrt3InterpolatingSubdividerLabsikGreinerT.hh
...der/Uniform/Sqrt3InterpolatingSubdividerLabsikGreinerT.hh
+1
-1
src/OpenMesh/Tools/Subdivider/Uniform/Sqrt3T.hh
src/OpenMesh/Tools/Subdivider/Uniform/Sqrt3T.hh
+1
-1
src/OpenMesh/Tools/Subdivider/Uniform/SubdividerT.hh
src/OpenMesh/Tools/Subdivider/Uniform/SubdividerT.hh
+8
-9
No files found.
src/OpenMesh/Tools/Subdivider/Uniform/CatmullClarkT.hh
View file @
3b906e51
...
...
@@ -88,7 +88,7 @@ namespace Uniform { // BEGIN_NS_UNIFORM
\note Needs a PolyMesh to work on!
*/
template
<
typename
MeshType
,
typename
RealType
=
float
>
template
<
typename
MeshType
,
typename
RealType
=
double
>
class
CatmullClarkT
:
public
SubdividerT
<
MeshType
,
RealType
>
{
public:
...
...
src/OpenMesh/Tools/Subdivider/Uniform/CompositeLoopT.hh
View file @
3b906e51
...
...
@@ -77,7 +77,7 @@ namespace Uniform { // BEGIN_NS_DECIMATER
/** Uniform composite Loop subdivision algorithm
*/
template
<
class
MeshType
,
class
RealType
=
float
>
template
<
class
MeshType
,
class
RealType
=
double
>
class
CompositeLoopT
:
public
CompositeT
<
MeshType
,
RealType
>
{
public:
...
...
src/OpenMesh/Tools/Subdivider/Uniform/CompositeSqrt3T.hh
View file @
3b906e51
...
...
@@ -77,7 +77,7 @@ namespace Uniform { // BEGIN_NS_UNIFORM
/** Uniform composite sqrt(3) subdivision algorithm
*/
template
<
typename
MeshType
,
typename
RealType
=
float
>
template
<
typename
MeshType
,
typename
RealType
=
double
>
class
CompositeSqrt3T
:
public
CompositeT
<
MeshType
,
RealType
>
{
public:
...
...
src/OpenMesh/Tools/Subdivider/Uniform/LongestEdgeT.hh
View file @
3b906e51
...
...
@@ -82,7 +82,7 @@ namespace Uniform { // BEGIN_NS_UNIFORM
//== CLASS DEFINITION =========================================================
template
<
typename
MeshType
,
typename
RealType
=
float
>
template
<
typename
MeshType
,
typename
RealType
=
double
>
class
CompareLengthFunction
{
public:
...
...
src/OpenMesh/Tools/Subdivider/Uniform/LoopT.hh
View file @
3b906e51
...
...
@@ -92,7 +92,7 @@ namespace Uniform { // BEGIN_NS_DECIMATER
* M.S. Thesis, Department of Mathematics, University of Utah, August 1987.
*
*/
template
<
typename
MeshType
,
typename
RealType
=
float
>
template
<
typename
MeshType
,
typename
RealType
=
double
>
class
LoopT
:
public
SubdividerT
<
MeshType
,
RealType
>
{
public:
...
...
src/OpenMesh/Tools/Subdivider/Uniform/ModifiedButterFlyT.hh
View file @
3b906e51
...
...
@@ -95,7 +95,7 @@ namespace Uniform { // BEGIN_NS_UNIFORM
*
* Clement Courbet - clement.courbet@ecp.fr
*/
template
<
typename
MeshType
,
typename
RealType
=
float
>
template
<
typename
MeshType
,
typename
RealType
=
double
>
class
ModifiedButterflyT
:
public
SubdividerT
<
MeshType
,
RealType
>
{
public:
...
...
src/OpenMesh/Tools/Subdivider/Uniform/Sqrt3InterpolatingSubdividerLabsikGreinerT.hh
View file @
3b906e51
...
...
@@ -109,7 +109,7 @@ namespace Uniform { // BEGIN_NS_UNIFORM
* Clement Courbet - clement.courbet@ecp.fr
*/
template
<
typename
MeshType
,
typename
RealType
=
float
>
template
<
typename
MeshType
,
typename
RealType
=
double
>
class
InterpolatingSqrt3LGT
:
public
SubdividerT
<
MeshType
,
RealType
>
{
public:
...
...
src/OpenMesh/Tools/Subdivider/Uniform/Sqrt3T.hh
View file @
3b906e51
...
...
@@ -99,7 +99,7 @@ namespace Uniform { // BEGIN_NS_DECIMATER
*
* L. Kobbelt, <a href="http://www-i8.informatik.rwth-aachen.de/publications/downloads/sqrt3.pdf">"Sqrt(3) subdivision"</a>, Proceedings of SIGGRAPH 2000.
*/
template
<
typename
MeshType
,
typename
RealType
=
float
>
template
<
typename
MeshType
,
typename
RealType
=
double
>
class
Sqrt3T
:
public
SubdividerT
<
MeshType
,
RealType
>
{
public:
...
...
src/OpenMesh/Tools/Subdivider/Uniform/SubdividerT.hh
View file @
3b906e51
...
...
@@ -79,18 +79,17 @@ namespace OpenMesh {
namespace
Subdivider
{
namespace
Uniform
{
//== CLASS DEFINITION =========================================================
/** Abstract base class for uniform subdivision algorithms.
*
* A derived class must overload the following functions:
* -#
name()
* -#
prepare(
)
* -#
subdivide(
)
* -#
cleanup(
)
* -#
const char* name() const
* -#
void prepare(MeshType&
)
* -#
void subdivide(MeshType&, size_t, bool
)
* -#
void cleanup(MeshType&
)
*/
template
<
typename
MeshType
,
typename
RealType
=
float
>
template
<
typename
MeshType
,
typename
RealType
=
double
>
class
SubdividerT
:
private
Utils
::
Noncopyable
{
public:
...
...
@@ -104,15 +103,15 @@ public:
//@{
/// Constructor to be used with interface 2
/// \see attach(), operator()(size_t), detach()
SubdividerT
(
void
)
:
attached_
(
NULL
)
{
}
SubdividerT
(
void
)
:
attached_
(
nullptr
)
{
}
/// Constructor to be used with interface 1 (calls attach())
/// \see operator()( MeshType&, size_t )
SubdividerT
(
MeshType
&
_m
)
:
attached_
(
NULL
)
{
attach
(
_m
);
}
SubdividerT
(
MeshType
&
_m
)
:
attached_
(
nullptr
)
{
attach
(
_m
);
}
//@}
/// Des
c
ructor (calls detach())
/// Des
t
ructor (calls detach())
virtual
~
SubdividerT
()
{
detach
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment