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
2741b73b
Commit
2741b73b
authored
18 years ago
by
Jean-François Remacle
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
073d24c8
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Geo/GModel.h
+1
-0
1 addition, 0 deletions
Geo/GModel.h
Geo/GModelIO_OCC.cpp
+11
-2
11 additions, 2 deletions
Geo/GModelIO_OCC.cpp
Geo/OCCIncludes.h
+1
-0
1 addition, 0 deletions
Geo/OCCIncludes.h
Parser/OpenFile.cpp
+5
-1
5 additions, 1 deletion
Parser/OpenFile.cpp
with
18 additions
and
3 deletions
Geo/GModel.h
+
1
−
0
View file @
2741b73b
...
...
@@ -138,6 +138,7 @@ class GModel
virtual
int
readFourier
(
const
std
::
string
&
name
);
// OCC model
int
readOCCBREP
(
const
std
::
string
&
name
);
int
readOCCIGES
(
const
std
::
string
&
name
);
int
readOCCSTEP
(
const
std
::
string
&
name
);
void
deleleOCCInternals
();
...
...
This diff is collapsed.
Click to expand it.
Geo/GModelIO_OCC.cpp
+
11
−
2
View file @
2741b73b
// $Id: GModelIO_OCC.cpp,v 1.
3
2006-11-15
15:06:45 geuzain
e Exp $
// $Id: GModelIO_OCC.cpp,v 1.
4
2006-11-15
21:53:31 remacl
e Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -265,7 +265,8 @@ void OCC_Internals :: buildLists ()
void
OCC_Internals
::
loadBREP
(
const
char
*
fn
)
{
throw
;
BRep_Builder
aBuilder
;
Standard_Boolean
result
=
BRepTools
::
Read
(
shape
,
(
char
*
)
fn
,
aBuilder
);
}
void
OCC_Internals
::
loadSTEP
(
const
char
*
fn
)
...
...
@@ -342,6 +343,14 @@ int GModel::readOCCIGES(const std::string &fn)
occ_internals
->
buildGModel
(
this
);
return
1
;
}
int
GModel
::
readOCCBREP
(
const
std
::
string
&
fn
)
{
occ_internals
=
new
OCC_Internals
;
occ_internals
->
loadBREP
(
fn
.
c_str
());
occ_internals
->
buildLists
();
occ_internals
->
buildGModel
(
this
);
return
1
;
}
void
GModel
::
deleteOCCInternals
()
{
if
(
occ_internals
)
delete
occ_internals
;
...
...
This diff is collapsed.
Click to expand it.
Geo/OCCIncludes.h
+
1
−
0
View file @
2741b73b
...
...
@@ -30,6 +30,7 @@ using std::iostream;
#include
"TopoDS_Solid.hxx"
#include
"TopExp_Explorer.hxx"
#include
"BRep_Tool.hxx"
#include
"BRep_Builder.hxx"
#include
"Geom_Curve.hxx"
#include
"Geom2d_Curve.hxx"
#include
"Geom_Surface.hxx"
...
...
This diff is collapsed.
Click to expand it.
Parser/OpenFile.cpp
+
5
−
1
View file @
2741b73b
// $Id: OpenFile.cpp,v 1.12
6
2006-11-1
4
2
0:20:18
remacle Exp $
// $Id: OpenFile.cpp,v 1.12
7
2006-11-1
5
2
1:53:31
remacle Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -293,6 +293,10 @@ int MergeProblem(char *name, int warn_if_missing)
if
(
!
strcmp
(
ext
,
".stl"
)
||
!
strcmp
(
ext
,
".STL"
)){
status
=
GMODEL
->
readSTL
(
name
,
CTX
.
mesh
.
stl_distance_tol
);
}
else
if
(
!
strcmp
(
ext
,
".brep"
)
||
!
strcmp
(
ext
,
".rle"
)
||
!
strcmp
(
ext
,
".brp"
)
||
!
strcmp
(
ext
,
".BRP"
)){
GMODEL
->
readOCCBREP
(
std
::
string
(
name
));
}
else
if
(
!
strcmp
(
ext
,
".iges"
)
||
!
strcmp
(
ext
,
".IGES"
)
||
!
strcmp
(
ext
,
".igs"
)
||
!
strcmp
(
ext
,
".IGS"
)){
GMODEL
->
readOCCIGES
(
std
::
string
(
name
));
...
...
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