Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
2cf02e54
Commit
2cf02e54
authored
14 years ago
by
Tuomas Karna
Browse files
Options
Downloads
Patches
Plain Diff
fixed MLine lua binding bug
parent
0850478a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/MLine.cpp
+5
-1
5 additions, 1 deletion
Geo/MLine.cpp
Geo/MPrism.cpp
+0
-1
0 additions, 1 deletion
Geo/MPrism.cpp
with
5 additions
and
2 deletions
Geo/MLine.cpp
+
5
−
1
View file @
2cf02e54
...
@@ -62,7 +62,11 @@ double MLine::getInnerRadius()
...
@@ -62,7 +62,11 @@ double MLine::getInnerRadius()
#include
"Bindings.h"
#include
"Bindings.h"
static
MLine
*
MLine_binding
(
std
::
vector
<
MVertex
*>
v
)
{
static
MLine
*
MLine_binding
(
std
::
vector
<
MVertex
*>
v
)
{
return
new
MLine
(
v
);
if
(
v
.
size
()
==
2
)
return
new
MLine
(
v
);
if
(
v
.
size
()
==
3
)
return
new
MLine3
(
v
);
return
new
MLineN
(
v
);
}
}
void
MLine
::
registerBindings
(
binding
*
b
)
void
MLine
::
registerBindings
(
binding
*
b
)
...
...
This diff is collapsed.
Click to expand it.
Geo/MPrism.cpp
+
0
−
1
View file @
2cf02e54
...
@@ -181,7 +181,6 @@ void MPrism::registerBindings(binding *b)
...
@@ -181,7 +181,6 @@ void MPrism::registerBindings(binding *b)
cb
=
b
->
addClass
<
MPrism18
>
(
"MPrism18"
);
cb
=
b
->
addClass
<
MPrism18
>
(
"MPrism18"
);
cb
->
setDescription
(
"A mesh second-order prism."
);
cb
->
setDescription
(
"A mesh second-order prism."
);
cm
=
cb
->
addMethod
(
"MPrism18"
,
&
MPrism18_binding
);
cm
=
cb
->
addMethod
(
"MPrism18"
,
&
MPrism18_binding
);
// cm = cb->setConstructor<MPrism18_binding,std::vector<MVertex*> >();
cm
->
setArgNames
(
"vectorOfVertices"
,
NULL
);
cm
->
setArgNames
(
"vectorOfVertices"
,
NULL
);
cm
->
setDescription
(
"Create a new prism with vertices in vectorV (length=18)."
);
cm
->
setDescription
(
"Create a new prism with vertices in vectorV (length=18)."
);
cb
->
setParentClass
<
MPrism
>
();
cb
->
setParentClass
<
MPrism
>
();
...
...
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