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
1db7ba53
Commit
1db7ba53
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
try fix for occ constraints
parent
e3dcd784
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Geo/GModelIO_OCC.cpp
+5
-4
5 additions, 4 deletions
Geo/GModelIO_OCC.cpp
with
5 additions
and
4 deletions
Geo/GModelIO_OCC.cpp
+
5
−
4
View file @
1db7ba53
...
@@ -599,16 +599,17 @@ static void applyOCCMeshConstraints(GModel *m, const void *constraints)
...
@@ -599,16 +599,17 @@ static void applyOCCMeshConstraints(GModel *m, const void *constraints)
// set the mesh as immutable
// set the mesh as immutable
ge
->
meshAttributes
.
Method
==
MESH_NONE
;
ge
->
meshAttributes
.
Method
==
MESH_NONE
;
// set the correct tags on the boundary vertices
// set the correct tags on the boundary vertices
int
numbeg
=
nodeNum
.
Value
(
1
);
bool
invert
=
(
nodePar
.
Value
(
1
)
>
nodePar
.
Value
(
n
));
int
numend
=
nodeNum
.
Value
(
n
);
int
numbeg
=
nodeNum
.
Value
(
invert
?
n
:
1
);
int
numend
=
nodeNum
.
Value
(
invert
?
1
:
n
);
Msg
::
Debug
(
"Applying mesh contraints on edge %d: beg=%d end=%d"
,
Msg
::
Debug
(
"Applying mesh contraints on edge %d: beg=%d end=%d"
,
ge
->
tag
(),
numbeg
,
numend
);
ge
->
tag
(),
numbeg
,
numend
);
ge
->
getBeginVertex
()
->
mesh_vertices
[
0
]
->
setNum
(
numbeg
);
ge
->
getBeginVertex
()
->
mesh_vertices
[
0
]
->
setNum
(
numbeg
);
ge
->
getEndVertex
()
->
mesh_vertices
[
0
]
->
setNum
(
numend
);
ge
->
getEndVertex
()
->
mesh_vertices
[
0
]
->
setNum
(
numend
);
// set the mesh on the edge
// set the mesh on the edge
for
(
int
i
=
2
;
i
<
n
;
i
++
){
for
(
int
i
=
2
;
i
<
n
;
i
++
){
int
num
=
nodeNum
.
Value
(
i
);
int
num
=
nodeNum
.
Value
(
invert
?
n
-
i
+
1
:
i
);
double
u
=
nodePar
.
Value
(
i
);
double
u
=
nodePar
.
Value
(
invert
?
n
-
i
+
1
:
i
);
GPoint
p
=
ge
->
point
(
u
);
GPoint
p
=
ge
->
point
(
u
);
Msg
::
Debug
(
"... adding vertex on edge %d: num=%d u=%g xyz=(%g,%g,%g)"
,
Msg
::
Debug
(
"... adding vertex on edge %d: num=%d u=%g xyz=(%g,%g,%g)"
,
ge
->
tag
(),
num
,
u
,
p
.
x
(),
p
.
y
(),
p
.
z
());
ge
->
tag
(),
num
,
u
,
p
.
x
(),
p
.
y
(),
p
.
z
());
...
...
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