-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Triangulation_2 : Document the Triangulation_2_projection_traits_3 class
#5407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sloriot
merged 32 commits into
CGAL:master
from
maxGimeno:T2-Document_projection_traits_3-maxGimeno
Aug 31, 2021
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
b9dd331
Document the `Triangulation_2_projection_traits_3` class.
maxGimeno b078418
Add an example
maxGimeno 1f5a847
Apply reviewer's modifications
maxGimeno 2e77ad3
Fix plan to plane
maxGimeno 2de090c
fix 'plane_point'
maxGimeno b3ccd43
Remove doc about functor
maxGimeno d2ba62a
Fixes in concepts and addition of missing functors for complyance to …
maxGimeno 7f334a0
save intermediary result to avoid computing it up to 3 times in Less_…
maxGimeno 6bcdda8
Remove unnecessary requirements from 2 concepts
maxGimeno 93e0605
Move the traits class in Kernel_23
maxGimeno 6c82c4b
Add misisng files
maxGimeno 82d2258
Merge remote-tracking branch 'cgal/master' into T2-Document_projectio…
maxGimeno c2628c1
change licenses
maxGimeno 7355675
RENAME
maxGimeno 092ae26
Merge remote-tracking branch 'cgal/master' into T2-Document_projectio…
maxGimeno bd933ad
rename doc file
maxGimeno 120ea6d
Re add a deprecated version of the original header and a test for it.
maxGimeno d33a362
Fix namespace error in Triangulate_hole_polyline.h
maxGimeno 6205f26
license
maxGimeno 3795c52
Changes after review
maxGimeno 75db029
Rename internal classes
maxGimeno 2d5f91f
Merge remote-tracking branch 'cgal/master' into T2-Document_projectio…
maxGimeno 3a0d1d0
Untouch the triangulation concepts
maxGimeno 83b69b5
Merge remote-tracking branch 'cgal/master' into T2-Document_projectio…
maxGimeno 7721f03
update README.md
maxGimeno 5a30c32
Misc cleaning
MaelRL f7df517
Merge remote-tracking branch 'cgal/master' into T2-Document_projectio…
maxGimeno bcce76c
Fix test & warnings
MaelRL 71d8853
Fix doc
MaelRL 1cbcc39
Rename example to avoid conflicts
MaelRL 4454c5b
Merge remote-tracking branch 'cgal/master' into T2-Document_projectio…
sloriot dacbd18
accomodate changes of internal -> Pkg/internal
sloriot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| namespace CGAL{ | ||
|
|
||
| /*! | ||
| \ingroup kernel_classes | ||
|
|
||
| The class `Projection_traits_3` works similarly to the `Projection_traits_xy_3`, | ||
| `Projection_traits_xz_3`, and `Projection_traits_yz_3` traits classes, enabling | ||
| the use of 2D algorithms on the projections of 3D data onto an arbitrary plane. | ||
|
|
||
| \tparam K must be a model of `Kernel` | ||
|
|
||
| \note Internal constructions (projections) are used in the predicate and | ||
| construction functors of this class. If `K` is a model of `Kernel` providing exact | ||
| constructions or if `K` is a `CGAL::Filtered_kernel` (such as for | ||
| `CGAL::Exact_predicates_inexact_constructions_kernel`), this class automatically | ||
| provides exact predicates. | ||
|
|
||
| \cgalModels `TriangulationTraits_2` | ||
| \cgalModels `DelaunayTriangulationTraits_2` | ||
| \cgalModels `ConstrainedTriangulationTraits_2` | ||
| \cgalModels `PolygonTraits_2` | ||
|
|
||
| \sa `CGAL::Projection_traits_xy_3` | ||
| \sa `CGAL::Projection_traits_xz_3` | ||
| \sa `CGAL::Projection_traits_yz_3` | ||
| */ | ||
| template <class K> | ||
| class Projection_traits_3 | ||
| { | ||
| public: | ||
| /// \name Functors | ||
| /// The functors provided by this class are those listed in the | ||
| /// concepts. The functors operate on the 2D projections of their | ||
| /// arguments. They come with preconditions that projections of the | ||
| /// arguments are non-degenerate, e.g. a line segment does not project | ||
| /// on a single point, two points do not project onto the same point, etc. | ||
|
|
||
| /// \name Creation | ||
| ///@{ | ||
|
|
||
| /*! | ||
| * \brief Constructor | ||
| * | ||
| * \param normal a vector orthogonal to the projection plane. | ||
| */ | ||
| Projection_traits_3(const typename K::Vector_3& normal); | ||
|
|
||
| ///@} | ||
| }; | ||
|
|
||
| } // end namespace CGAL | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| // Copyright (c) 2009 GeometryFactory (France) | ||
| // All rights reserved. | ||
| // | ||
| // This file is part of CGAL (www.cgal.org). | ||
| // | ||
| // $URL$ | ||
| // $Id$ | ||
| // SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial | ||
| // | ||
| // | ||
| // Author(s) : Laurent Rineau | ||
|
|
||
|
|
||
| #ifndef CGAL_PROJECTION_TRAITS_3_H | ||
| #define CGAL_PROJECTION_TRAITS_3_H | ||
|
|
||
| #include <CGAL/Kernel_23/internal/Filtered_projection_traits_3.h> | ||
|
|
||
| namespace CGAL { | ||
|
|
||
| // This declaration is needed to break the cyclic dependency. | ||
| template < class Filtered_kernel > | ||
| class Filtered_projection_traits_3; | ||
|
|
||
| template <class Kernel, bool Has_filtered_predicates=Kernel::Has_filtered_predicates> | ||
| class Projection_traits_3 | ||
| : public Projection_traits_base_3<Kernel> | ||
| { | ||
| public: | ||
| explicit Projection_traits_3(const typename Kernel::Vector_3& n_) | ||
| : Projection_traits_base_3<Kernel>(n_) | ||
| {} | ||
| }; | ||
|
|
||
| template <class Kernel> | ||
| class Projection_traits_3<Kernel, true> | ||
| : public Filtered_projection_traits_3<Kernel> | ||
| { | ||
| public: | ||
| explicit Projection_traits_3(const typename Kernel::Vector_3& n_) | ||
| : Filtered_projection_traits_3<Kernel>(n_) | ||
| {} | ||
| }; | ||
|
|
||
| } // namespace CGAL | ||
|
|
||
| #endif // CGAL_PROJECTION_TRAITS_3_H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.