Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Aland, Sebastian
amdis
Commits
47dace03
Commit
47dace03
authored
Aug 16, 2012
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
And again fixed some compiler problems.
parent
34f714df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
extensions/GeometryTools.cc
extensions/GeometryTools.cc
+4
-0
extensions/GeometryTools.hh
extensions/GeometryTools.hh
+2
-2
No files found.
extensions/GeometryTools.cc
View file @
47dace03
...
...
@@ -259,6 +259,8 @@ bool intersection_box_box_2d(double min_corner0[], double max_corner0[],
if
(
point_in_box_2d
(
p
,
min_corner0
,
max_corner0
))
return
true
;
}
return
false
;
}
//----------------------------------------< intersection_triangle_box_2d >
...
...
@@ -1288,6 +1290,8 @@ bool intersection_box_box_3d(double min_corner0[], double max_corner0[],
if
(
point_in_box_3d
(
p
,
min_corner0
,
max_corner0
))
return
true
;
}
return
false
;
}
//----------------------------------------< intersection_triangle_box_3d >
...
...
extensions/GeometryTools.hh
View file @
47dace03
namespace
meshconv
{
template
<
int
dow
>
void
coordinate_transform
(
double
x
[],
double
shift
[],
double
scale
[],
double
alpha
=
0.0
,
double
beta
=
0.0
)
void
coordinate_transform
(
double
x
[],
double
shift
[],
double
scale
[],
double
alpha
,
double
beta
)
{
mtl
::
dense2D
<
double
>
Rx
(
dow
,
dow
),
Ry
(
dow
,
dow
),
T
(
dow
,
dow
),
S
(
dow
,
dow
);
Rx
=
1.0
;
...
...
@@ -38,4 +38,4 @@ namespace meshconv {
x
[
i
]
=
coords
[
i
]
+
shift
[
i
];
}
}
// end namespace meshconv
\ No newline at end of file
}
// end namespace meshconv
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