Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
d5612f16
Commit
d5612f16
authored
Nov 25, 2015
by
Janis Born
Browse files
Python bindings: add C++11 compilation switch for cross product
parent
4ef152ac
Pipeline
#135
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Python/Vector.hh
View file @
d5612f16
...
...
@@ -78,10 +78,15 @@ void defInitMod(class_< OpenMesh::VectorT<Scalar, 3> > &classVector) {
classVector
.
def
(
"__init__"
,
make_constructor
(
&
Factory
<
Scalar
>::
vec3_default
))
.
def
(
"__init__"
,
make_constructor
(
&
Factory
<
Scalar
>::
vec3_user_defined
))
#if (_MSC_VER >= 1900 || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)) && !defined(OPENMESH_VECTOR_LEGACY)
.
def
(
"__mod__"
,
&
Factory
<
Scalar
>::
Vector3
::
template
operator
%<
Scalar
>)
;
def
(
"cross"
,
&
Factory
<
Scalar
>::
Vector3
::
template
operator
%<
Scalar
>);
#else
.
def
(
"__mod__"
,
&
Factory
<
Scalar
>::
Vector3
::
operator
%
)
;
def
(
"cross"
,
&
Factory
<
Scalar
>::
Vector3
::
operator
%
);
#endif
}
template
<
class
Scalar
>
void
defInitMod
(
class_
<
OpenMesh
::
VectorT
<
Scalar
,
4
>
>
&
classVector
)
{
...
...
Write
Preview
Supports
Markdown
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