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
C
CommonGUI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Frédéric Larue
CommonGUI
Commits
25bbbe26
Commit
25bbbe26
authored
Apr 21, 2018
by
Frédéric Larue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Utility function added to Box3f.
parent
ee44ce37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
GLViewer/Box.h
GLViewer/Box.h
+11
-0
No files found.
GLViewer/Box.h
View file @
25bbbe26
...
...
@@ -395,6 +395,11 @@ public:
* \param[in] v Pointer to the coordinates of the 3D point to bound.
*/
inline
void
Add
(
const
QVector3D
*
v
);
/** Box boundaries extension so as to bound the specified 3D point.
*
* \param[in] v Pointer to the coordinates of the 3D point to bound.
*/
inline
void
Add
(
const
float
*
v
);
/** Box boundaries extension so as to bound the specified box.
*
* \param[in] b Bounding box to bound.
...
...
@@ -547,6 +552,12 @@ inline void Box3f::Add( const QVector3D* v )
}
inline
void
Box3f
::
Add
(
const
float
*
v
)
{
Add
(
QVector3D
(
v
[
0
],
v
[
1
],
v
[
2
])
);
}
inline
void
Box3f
::
Add
(
const
Box3f
&
b
)
{
if
(
b
.
m_Min
.
x
()
<
m_Min
.
x
()
)
...
...
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