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
9aaaf31f
Commit
9aaaf31f
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix compile
parent
5237ec1a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/GModelIO_OCC.cpp
+1
-1
1 addition, 1 deletion
Geo/GModelIO_OCC.cpp
Geo/GModelIO_OCC.h
+3
-0
3 additions, 0 deletions
Geo/GModelIO_OCC.h
with
4 additions
and
1 deletion
Geo/GModelIO_OCC.cpp
+
1
−
1
View file @
9aaaf31f
...
@@ -2917,8 +2917,8 @@ int GModel::importOCCShape(const void *shape)
...
@@ -2917,8 +2917,8 @@ int GModel::importOCCShape(const void *shape)
{
{
if
(
!
_occ_internals
)
if
(
!
_occ_internals
)
_occ_internals
=
new
OCC_Internals
;
_occ_internals
=
new
OCC_Internals
;
std
::
vector
<
int
>
tags
[
4
];
#if defined(HAVE_OCC)
#if defined(HAVE_OCC)
std
::
vector
<
int
>
tags
[
4
];
_occ_internals
->
importShapes
((
TopoDS_Shape
*
)
shape
,
false
,
tags
);
_occ_internals
->
importShapes
((
TopoDS_Shape
*
)
shape
,
false
,
tags
);
#else
#else
Msg
::
Error
(
"Gmsh requires OpenCASCADE to import TopoDS_Shape"
);
Msg
::
Error
(
"Gmsh requires OpenCASCADE to import TopoDS_Shape"
);
...
...
This diff is collapsed.
Click to expand it.
Geo/GModelIO_OCC.h
+
3
−
0
View file @
9aaaf31f
...
@@ -261,6 +261,7 @@ class OCC_Internals {
...
@@ -261,6 +261,7 @@ class OCC_Internals {
public:
public:
enum
BooleanOperator
{
Union
,
Intersection
,
Difference
,
Section
,
Fragments
};
enum
BooleanOperator
{
Union
,
Intersection
,
Difference
,
Section
,
Fragments
};
OCC_Internals
(){}
OCC_Internals
(){}
bool
getChanged
()
const
{
return
false
;
}
void
reset
(){}
void
reset
(){}
void
setTagConstraints
(
int
dim
,
int
val
){}
void
setTagConstraints
(
int
dim
,
int
val
){}
int
getMaxTag
(
int
dim
)
const
{
return
0
;
}
int
getMaxTag
(
int
dim
)
const
{
return
0
;
}
...
@@ -333,7 +334,9 @@ public:
...
@@ -333,7 +334,9 @@ public:
{
{
Msg
::
Error
(
"Gmsh requires OpenCASCADE to export '%s'"
,
fileName
.
c_str
());
Msg
::
Error
(
"Gmsh requires OpenCASCADE to export '%s'"
,
fileName
.
c_str
());
}
}
void
setMeshSize
(
int
dim
,
int
tag
,
double
size
){}
void
synchronize
(
GModel
*
model
){}
void
synchronize
(
GModel
*
model
){}
bool
getVertex
(
int
tag
,
double
&
x
,
double
&
y
,
double
&
z
){
return
false
;
}
};
};
#endif
#endif
...
...
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