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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
45d7639c
Commit
45d7639c
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
polish
parent
6ec04bdb
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Geo/GModelIO_Geo.cpp
+6
-8
6 additions, 8 deletions
Geo/GModelIO_Geo.cpp
Geo/GModelIO_Mesh.cpp
+12
-12
12 additions, 12 deletions
Geo/GModelIO_Mesh.cpp
doc/TODO
+5
-1
5 additions, 1 deletion
doc/TODO
with
23 additions
and
21 deletions
Geo/GModelIO_Geo.cpp
+
6
−
8
View file @
45d7639c
// $Id: GModelIO_Geo.cpp,v 1.
9
2007-03-1
1 20:18
:5
8
geuzaine Exp $
// $Id: GModelIO_Geo.cpp,v 1.
10
2007-03-1
3 09:25
:5
0
geuzaine Exp $
//
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -279,8 +279,7 @@ class writeGFaceGEO {
...
@@ -279,8 +279,7 @@ class writeGFaceGEO {
num
.
push_back
((
*
it
)
->
tag
());
num
.
push_back
((
*
it
)
->
tag
());
for
(
std
::
list
<
int
>::
iterator
it
=
orientations
.
begin
();
it
!=
orientations
.
end
();
it
++
)
for
(
std
::
list
<
int
>::
iterator
it
=
orientations
.
begin
();
it
!=
orientations
.
end
();
it
++
)
ori
.
push_back
((
*
it
)
>
0
?
1
:
-
1
);
ori
.
push_back
((
*
it
)
>
0
?
1
:
-
1
);
int
NUMLOOP
=
gf
->
tag
()
+
1000000
;
fprintf
(
geo
,
"Line Loop (%d) = "
,
gf
->
tag
());
fprintf
(
geo
,
"Line Loop (%d) = "
,
NUMLOOP
);
for
(
unsigned
int
i
=
0
;
i
<
num
.
size
();
i
++
){
for
(
unsigned
int
i
=
0
;
i
<
num
.
size
();
i
++
){
if
(
i
)
if
(
i
)
fprintf
(
geo
,
", %d"
,
num
[
i
]
*
ori
[
i
]);
fprintf
(
geo
,
", %d"
,
num
[
i
]
*
ori
[
i
]);
...
@@ -289,10 +288,10 @@ class writeGFaceGEO {
...
@@ -289,10 +288,10 @@ class writeGFaceGEO {
}
}
fprintf
(
geo
,
"};
\n
"
);
fprintf
(
geo
,
"};
\n
"
);
if
(
gf
->
geomType
()
==
GEntity
::
Plane
){
if
(
gf
->
geomType
()
==
GEntity
::
Plane
){
fprintf
(
geo
,
"Plane Surface (%d) = {%d};
\n
"
,
gf
->
tag
(),
NUMLOOP
);
fprintf
(
geo
,
"Plane Surface (%d) = {%d};
\n
"
,
gf
->
tag
(),
gf
->
tag
()
);
}
}
else
if
(
edges
.
size
()
==
3
||
edges
.
size
()
==
4
){
else
if
(
edges
.
size
()
==
3
||
edges
.
size
()
==
4
){
fprintf
(
geo
,
"Ruled Surface (%d) = {%d};
\n
"
,
gf
->
tag
(),
NUMLOOP
);
fprintf
(
geo
,
"Ruled Surface (%d) = {%d};
\n
"
,
gf
->
tag
(),
gf
->
tag
()
);
}
}
else
{
else
{
Msg
(
GERROR
,
"Skipping surface %d in export"
,
gf
->
tag
());
Msg
(
GERROR
,
"Skipping surface %d in export"
,
gf
->
tag
());
...
@@ -312,8 +311,7 @@ class writeGRegionGEO {
...
@@ -312,8 +311,7 @@ class writeGRegionGEO {
std
::
list
<
GFace
*>
faces
=
gr
->
faces
();
std
::
list
<
GFace
*>
faces
=
gr
->
faces
();
if
(
faces
.
size
()){
if
(
faces
.
size
()){
int
NUMLOOP
=
gr
->
tag
()
+
1000000
;
fprintf
(
geo
,
"Surface Loop (%d) = "
,
gr
->
tag
());
fprintf
(
geo
,
"Surface Loop (%d) = "
,
NUMLOOP
);
for
(
std
::
list
<
GFace
*>::
iterator
it
=
faces
.
begin
();
it
!=
faces
.
end
();
it
++
)
{
for
(
std
::
list
<
GFace
*>::
iterator
it
=
faces
.
begin
();
it
!=
faces
.
end
();
it
++
)
{
if
(
it
!=
faces
.
begin
())
if
(
it
!=
faces
.
begin
())
fprintf
(
geo
,
", %d"
,
(
*
it
)
->
tag
());
fprintf
(
geo
,
", %d"
,
(
*
it
)
->
tag
());
...
@@ -321,7 +319,7 @@ class writeGRegionGEO {
...
@@ -321,7 +319,7 @@ class writeGRegionGEO {
fprintf
(
geo
,
"{%d"
,
(
*
it
)
->
tag
());
fprintf
(
geo
,
"{%d"
,
(
*
it
)
->
tag
());
}
}
fprintf
(
geo
,
"};
\n
"
);
fprintf
(
geo
,
"};
\n
"
);
fprintf
(
geo
,
"Volume (%d) = {%d};
\n
"
,
gr
->
tag
(),
NUMLOOP
);
fprintf
(
geo
,
"Volume (%d) = {%d};
\n
"
,
gr
->
tag
(),
gr
->
tag
()
);
}
}
}
}
};
};
...
...
This diff is collapsed.
Click to expand it.
Geo/GModelIO_Mesh.cpp
+
12
−
12
View file @
45d7639c
// $Id: GModelIO_Mesh.cpp,v 1.1
0
2007-03-1
1 20:18
:5
8
geuzaine Exp $
// $Id: GModelIO_Mesh.cpp,v 1.1
1
2007-03-1
3 09:25
:5
0
geuzaine Exp $
//
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -1959,7 +1959,7 @@ int GModel::readP3D(const std::string &name)
...
@@ -1959,7 +1959,7 @@ int GModel::readP3D(const std::string &name)
for
(
int
j
=
0
;
j
<
Nj
[
n
];
j
++
){
for
(
int
j
=
0
;
j
<
Nj
[
n
];
j
++
){
for
(
int
k
=
0
;
k
<
Nk
[
n
];
k
++
){
for
(
int
k
=
0
;
k
<
Nk
[
n
];
k
++
){
double
d
;
double
d
;
if
(
fscanf
(
fp
,
"%lf"
,
&
d
)
!=
1
)
{
printf
(
"aaa
\n
"
);
return
0
;
}
if
(
fscanf
(
fp
,
"%lf"
,
&
d
)
!=
1
)
return
0
;
if
(
coord
==
0
){
if
(
coord
==
0
){
MVertex
*
v
=
new
MVertex
(
d
,
0.
,
0.
,
gr
);
MVertex
*
v
=
new
MVertex
(
d
,
0.
,
0.
,
gr
);
gr
->
transfinite_vertices
[
i
][
j
][
k
]
=
v
;
gr
->
transfinite_vertices
[
i
][
j
][
k
]
=
v
;
...
...
This diff is collapsed.
Click to expand it.
doc/TODO
+
5
−
1
View file @
45d7639c
$Id: TODO,v 1.5
3
2007-03-1
1 20:19:06
geuzaine Exp $
$Id: TODO,v 1.5
4
2007-03-1
3 09:25:50
geuzaine Exp $
********************************************************************
********************************************************************
...
@@ -11,6 +11,10 @@ interface duplicate entity removal from opencascade
...
@@ -11,6 +11,10 @@ interface duplicate entity removal from opencascade
********************************************************************
********************************************************************
add support for Patran mesh files
********************************************************************
reinterface Triangle for plane surfaces
reinterface Triangle for plane surfaces
********************************************************************
********************************************************************
...
...
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