Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
taglut
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
Container Registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jean-Marie Favreau
taglut
Commits
379abb60
Commit
379abb60
authored
14 years ago
by
Jean-Marie Favreau
Browse files
Options
Downloads
Patches
Plain Diff
Add a parameter to skip the cylinder splitting
parent
36bae174
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/meshCutUsingNLoops.py
+10
-3
10 additions, 3 deletions
python/meshCutUsingNLoops.py
with
10 additions
and
3 deletions
python/meshCutUsingNLoops.py
+
10
−
3
View file @
379abb60
...
...
@@ -23,6 +23,7 @@
Options:
-a, --angles Adjust using angles
-c, --cylinders Do not cut the cylinders after the n-loop computation
-d, --display Display the final mesh
-i, --infos Display information about final mesh
-o, --output=FILE Save the mesh using the file FILE
...
...
@@ -49,7 +50,7 @@ def usage():
def
main
():
try
:
opts
,
args
=
my_getopt
(
sys
.
argv
[
1
:],
"
hdio:x:y:a
"
,
[
"
help
"
,
"
infos
"
,
"
display
"
,
"
output=
"
,
"
x=
"
,
"
y=
"
,
"
angles
"
])
opts
,
args
=
my_getopt
(
sys
.
argv
[
1
:],
"
hdio:x:y:a
c
"
,
[
"
help
"
,
"
infos
"
,
"
display
"
,
"
output=
"
,
"
x=
"
,
"
y=
"
,
"
angles
"
,
"
cylinders
"
])
except
getopt
.
GetoptError
,
msg
:
# print help information and exit:
print
"
Error:
"
,
msg
...
...
@@ -65,6 +66,7 @@ def main():
nLoops
=
False
plnLoops
=
False
angles
=
False
cylinders
=
False
for
o
,
a
in
opts
:
if
o
in
(
"
-i
"
,
"
--infos
"
):
infos
=
True
...
...
@@ -76,6 +78,8 @@ def main():
sizey
=
int
(
a
)
if
o
in
(
"
-o
"
,
"
--output
"
):
outputFile
=
a
if
o
in
(
"
-c
"
,
"
--cylinders
"
):
cylinders
=
True
if
o
in
(
"
-a
"
,
"
--angles
"
):
angles
=
True
if
o
in
(
"
-h
"
,
"
--help
"
):
...
...
@@ -123,8 +127,11 @@ def main():
plCut
=
taglut
.
MeshPLCut
()
m2
=
plCut
.
cutMesh
(
m
,
nl
)
print
"
Split cylinders...
"
m3
=
plCut
.
cutMeshInQuadranglesFromCylindricalTiling
(
m2
)
if
not
cylinders
:
print
"
Split cylinders...
"
m3
=
plCut
.
cutMeshInQuadranglesFromCylindricalTiling
(
m2
)
else
:
m3
=
m2
if
(
infos
):
print
m3
.
getInfos
()
...
...
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