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
885d2954
Commit
885d2954
authored
14 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
allow saving brep/step files
parent
dd8bb86a
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
Fltk/menuWindow.cpp
+8
-0
8 additions, 0 deletions
Fltk/menuWindow.cpp
Geo/GModelIO_OCC.cpp
+2
-2
2 additions, 2 deletions
Geo/GModelIO_OCC.cpp
Graphics/drawMesh.cpp
+1
-1
1 addition, 1 deletion
Graphics/drawMesh.cpp
with
11 additions
and
3 deletions
Fltk/menuWindow.cpp
+
8
−
0
View file @
885d2954
...
...
@@ -235,6 +235,8 @@ static int _save_msh(const char *name){ return mshFileDialog(name); }
static
int
_save_pos
(
const
char
*
name
){
return
posFileDialog
(
name
);
}
static
int
_save_options
(
const
char
*
name
){
return
optionsFileDialog
(
name
);
}
static
int
_save_geo
(
const
char
*
name
){
return
geoFileDialog
(
name
);
}
static
int
_save_brep
(
const
char
*
name
){
CreateOutputFile
(
name
,
FORMAT_BREP
);
return
1
;
}
static
int
_save_step
(
const
char
*
name
){
CreateOutputFile
(
name
,
FORMAT_STEP
);
return
1
;
}
static
int
_save_cgns
(
const
char
*
name
){
return
cgnsFileDialog
(
name
);
}
static
int
_save_unv
(
const
char
*
name
){
return
unvFileDialog
(
name
);
}
static
int
_save_vtk
(
const
char
*
name
){
return
genericMeshFileDialog
...
...
@@ -286,6 +288,8 @@ static int _save_auto(const char *name)
case
FORMAT_POS
:
return
_save_pos
(
name
);
case
FORMAT_OPT
:
return
_save_options
(
name
);
case
FORMAT_GEO
:
return
_save_geo
(
name
);
case
FORMAT_BREP
:
return
_save_brep
(
name
);
case
FORMAT_STEP
:
return
_save_step
(
name
);
case
FORMAT_CGNS
:
return
_save_cgns
(
name
);
case
FORMAT_UNV
:
return
_save_unv
(
name
);
case
FORMAT_VTK
:
return
_save_vtk
(
name
);
...
...
@@ -330,6 +334,10 @@ static void file_save_as_cb(Fl_Widget *w, void *data)
{
"Gmsh Mesh Statistics"
TT
"*.pos"
,
_save_pos
},
{
"Gmsh Options"
TT
"*.opt"
,
_save_options
},
{
"Gmsh Unrolled Geometry"
TT
"*.geo"
,
_save_geo
},
#if defined(HAVE_OCC)
{
"OpenCASCADE STEP"
TT
"*.step"
,
_save_step
},
{
"OpenCASCADE BRep"
TT
"*.brep"
,
_save_brep
},
#endif
{
"Abaqus INP Mesh"
TT
"*.inp"
,
_save_inp
},
#if defined(HAVE_LIBCGNS)
{
"CGNS (Experimental)"
TT
"*.cgns"
,
_save_cgns
},
...
...
This diff is collapsed.
Click to expand it.
Geo/GModelIO_OCC.cpp
+
2
−
2
View file @
885d2954
...
...
@@ -969,7 +969,7 @@ int GModel::readOCCIGES(const std::string &fn)
int
GModel
::
writeOCCBREP
(
const
std
::
string
&
fn
)
{
if
(
!
_occ_internals
){
Msg
::
Error
(
"No O
CC M
odel
F
ound"
);
Msg
::
Error
(
"No O
penCASCADE m
odel
f
ound"
);
return
0
;
}
else
...
...
@@ -980,7 +980,7 @@ int GModel::writeOCCBREP(const std::string &fn)
int
GModel
::
writeOCCSTEP
(
const
std
::
string
&
fn
)
{
if
(
!
_occ_internals
){
Msg
::
Error
(
"No O
CC M
odel
F
ound"
);
Msg
::
Error
(
"No O
penCASCADE m
odel
f
ound"
);
return
0
;
}
else
...
...
This diff is collapsed.
Click to expand it.
Graphics/drawMesh.cpp
+
1
−
1
View file @
885d2954
...
...
@@ -315,7 +315,7 @@ static void drawVoronoiDual(std::vector<T*> &elements)
gl2psDisable
(
GL2PS_LINE_STIPPLE
);
}
// Routine
s
for
filling and
drawing the vertex arrays
// Routine for drawing the vertex arrays
static
void
drawArrays
(
drawContext
*
ctx
,
GEntity
*
e
,
VertexArray
*
va
,
GLint
type
,
bool
useNormalArray
,
int
forceColor
=
0
,
unsigned
int
color
=
0
)
...
...
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