Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
785299a8
Commit
785299a8
authored
11 years ago
by
Niklaus Johner
Browse files
Options
Downloads
Patches
Plain Diff
Added wrapper function for the export of the Vec3List::FitCylinder function
parent
db8e46f1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/geom/pymod/export_vec3.cc
+6
-1
6 additions, 1 deletion
modules/geom/pymod/export_vec3.cc
with
6 additions
and
1 deletion
modules/geom/pymod/export_vec3.cc
+
6
−
1
View file @
785299a8
...
...
@@ -52,6 +52,11 @@ list vec3_data(const geom::Vec3& v)
return
nrvo
;
}
boost
::
python
::
tuple
wrap_FitCylinder
(
const
geom
::
Vec3List
&
vl
,
const
geom
::
Vec3
&
initial_direction
)
{
std
::
pair
<
geom
::
Line3
,
Real
>
pair
=
vl
.
FitCylinder
(
initial_direction
);
return
boost
::
python
::
make_tuple
<
geom
::
Line3
,
Real
>
(
pair
.
first
,
pair
.
second
);
}
void
export_Vec3
()
{
using
namespace
geom
;
...
...
@@ -115,6 +120,6 @@ void export_Vec3()
.
add_property
(
"inertia"
,
&
Vec3List
::
GetInertia
)
.
add_property
(
"principal_axes"
,
&
Vec3List
::
GetPrincipalAxes
)
.
def
(
"GetODRLine"
,
&
Vec3List
::
GetODRLine
)
.
def
(
"FitCylinder"
,
&
Vec3List
::
FitCylinder
)
.
def
(
"FitCylinder"
,
wrap_FitCylinder
,(
arg
(
"direction initial guess"
))
)
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment