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
08cd2f3e
Commit
08cd2f3e
authored
14 years ago
by
Jonathan Lambrechts
Browse files
Options
Downloads
Patches
Plain Diff
clean up GModeelFactory so that it can be built without HAVE_OCC
parent
a69da14d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/GModelFactory.cpp
+33
-31
33 additions, 31 deletions
Geo/GModelFactory.cpp
Geo/GModelFactory.h
+5
-5
5 additions, 5 deletions
Geo/GModelFactory.h
with
38 additions
and
36 deletions
Geo/GModelFactory.cpp
+
33
−
31
View file @
08cd2f3e
...
...
@@ -5,14 +5,6 @@
#include
"GModelFactory.h"
#if defined(HAVE_OCC)
#include
"OCCIncludes.h"
#include
"GModelIO_OCC.h"
#include
"OCCVertex.h"
#include
"OCCEdge.h"
#include
"OCCFace.h"
#include
"OCCRegion.h"
#include
"ListUtils.h"
#include
"Context.h"
#include
"GVertex.h"
...
...
@@ -20,30 +12,8 @@
#include
"gmshEdge.h"
#include
"gmshFace.h"
#include
"gmshRegion.h"
#include
"BRepBuilderAPI_MakeVertex.hxx"
#include
"BRepOffsetAPI_MakePipe.hxx"
#include
"BRepBuilderAPI_MakeEdge.hxx"
#include
"BRepPrimAPI_MakeRevol.hxx"
#include
"BRepPrimAPI_MakePrism.hxx"
#include
"BRepBuilderAPI_MakeWire.hxx"
#include
"BRepOffsetAPI_ThruSections.hxx"
#include
"BRepOffsetAPI_MakeFilling.hxx"
#include
"BRepBuilderAPI_MakeFace.hxx"
#include
<GC_MakeArcOfCircle.hxx>
#include
<gp_Pnt.hxx>
#include
<gp_Vec.hxx>
#include
<gce_MakeCirc.hxx>
#include
<gce_MakePln.hxx>
#include
<ElCLib.hxx>
#include
<Geom_Circle.hxx>
#include
<Geom_TrimmedCurve.hxx>
#include
<Geom_BezierCurve.hxx>
#include
<Geom_BSplineCurve.hxx>
#include
<BRepBuilderAPI_Transform.hxx>
#include
<TColgp_HArray1OfPnt.hxx>
#include
<TColStd_HArray1OfReal.hxx>
#include
<TColStd_HArray1OfInteger.hxx>
#include
"MLine.h"
#include
"GModel.h"
GVertex
*
GeoFactory
::
addVertex
(
GModel
*
gm
,
double
x
,
double
y
,
double
z
,
double
lc
)
...
...
@@ -189,6 +159,38 @@ GRegion* GeoFactory::addVolume (GModel *gm, std::vector<std::vector<GFace *> > f
//---------------------------------------------------------------------------------
#if defined(HAVE_OCC)
#include
"OCCIncludes.h"
#include
"GModelIO_OCC.h"
#include
"OCCVertex.h"
#include
"OCCEdge.h"
#include
"OCCFace.h"
#include
"OCCRegion.h"
#include
"BRepBuilderAPI_MakeVertex.hxx"
#include
"BRepOffsetAPI_MakePipe.hxx"
#include
"BRepBuilderAPI_MakeEdge.hxx"
#include
"BRepPrimAPI_MakeRevol.hxx"
#include
"BRepPrimAPI_MakePrism.hxx"
#include
"BRepBuilderAPI_MakeWire.hxx"
#include
"BRepOffsetAPI_ThruSections.hxx"
#include
"BRepOffsetAPI_MakeFilling.hxx"
#include
"BRepBuilderAPI_MakeFace.hxx"
#include
<GC_MakeArcOfCircle.hxx>
#include
<gp_Pnt.hxx>
#include
<gp_Vec.hxx>
#include
<gce_MakeCirc.hxx>
#include
<gce_MakePln.hxx>
#include
<ElCLib.hxx>
#include
<Geom_Circle.hxx>
#include
<Geom_TrimmedCurve.hxx>
#include
<Geom_BezierCurve.hxx>
#include
<Geom_BSplineCurve.hxx>
#include
<BRepBuilderAPI_Transform.hxx>
#include
<TColgp_HArray1OfPnt.hxx>
#include
<TColStd_HArray1OfReal.hxx>
#include
<TColStd_HArray1OfInteger.hxx>
GVertex
*
OCCFactory
::
addVertex
(
GModel
*
gm
,
double
x
,
double
y
,
double
z
,
double
lc
)
{
if
(
!
gm
->
_occ_internals
)
...
...
This diff is collapsed.
Click to expand it.
Geo/GModelFactory.h
+
5
−
5
View file @
08cd2f3e
...
...
@@ -8,14 +8,14 @@
#include
<vector>
#include
"GmshConfig.h"
#include
"fullMatrix.h"
#include
"SPoint3.h"
#include
"GEntity.h"
class
GEntity
;
class
GVertex
;
class
GEdge
;
class
GFace
;
class
GRegion
;
class
GModel
;
class
Field
;
class
SPoint3
;
// Abstract CAD creation factory.
class
GModelFactory
{
...
...
@@ -145,7 +145,7 @@ class OCCFactory : public GModelFactory {
public:
OCCFactory
(){}
GVertex
*
addVertex
(
GModel
*
gm
,
double
x
,
double
y
,
double
z
,
double
lc
);
virtual
GEdge
*
addLine
(
GModel
*
gm
,
GVertex
*
v1
,
GVertex
*
v2
);
GEdge
*
addLine
(
GModel
*
gm
,
GVertex
*
v1
,
GVertex
*
v2
);
GEdge
*
addCircleArc
(
GModel
*
gm
,
const
arcCreationMethod
&
method
,
GVertex
*
start
,
GVertex
*
end
,
const
SPoint3
&
aPoint
);
...
...
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