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
b3f43f49
Commit
b3f43f49
authored
19 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
make COlor and Hide/Show commands work with discrete entities
parent
f0aa95fe
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/CAD.cpp
+7
-1
7 additions, 1 deletion
Geo/CAD.cpp
Geo/Geo.h
+0
-1
0 additions, 1 deletion
Geo/Geo.h
with
7 additions
and
2 deletions
Geo/CAD.cpp
+
7
−
1
View file @
b3f43f49
// $Id: CAD.cpp,v 1.9
6
2006-0
3
-0
8 17:02:50 remacl
e Exp $
// $Id: CAD.cpp,v 1.9
7
2006-0
4
-0
9 20:14:28 geuzain
e Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -571,15 +571,18 @@ void ColorShape(int Type, int Num, unsigned int Color)
case
MSH_SEGM_ELLI_INV
:
case
MSH_SEGM_NURBS
:
case
MSH_SEGM_PARAMETRIC
:
case
MSH_SEGM_DISCRETE
:
ColorCurve
(
Num
,
Color
);
break
;
case
MSH_SURF_NURBS
:
case
MSH_SURF_TRIC
:
case
MSH_SURF_REGL
:
case
MSH_SURF_PLAN
:
case
MSH_SURF_DISCRETE
:
ColorSurface
(
Num
,
Color
);
break
;
case
MSH_VOLUME
:
case
MSH_VOLUME_DISCRETE
:
ColorVolume
(
Num
,
Color
);
break
;
default:
...
...
@@ -603,15 +606,18 @@ void VisibilityShape(int Type, int Num, int Mode)
case
MSH_SEGM_ELLI_INV
:
case
MSH_SEGM_NURBS
:
case
MSH_SEGM_PARAMETRIC
:
case
MSH_SEGM_DISCRETE
:
SetVisibilityByNumber
(
Num
,
3
,
Mode
);
break
;
case
MSH_SURF_NURBS
:
case
MSH_SURF_TRIC
:
case
MSH_SURF_REGL
:
case
MSH_SURF_PLAN
:
case
MSH_SURF_DISCRETE
:
SetVisibilityByNumber
(
Num
,
4
,
Mode
);
break
;
case
MSH_VOLUME
:
case
MSH_VOLUME_DISCRETE
:
SetVisibilityByNumber
(
Num
,
5
,
Mode
);
break
;
default:
...
...
This diff is collapsed.
Click to expand it.
Geo/Geo.h
+
0
−
1
View file @
b3f43f49
...
...
@@ -56,7 +56,6 @@
#define MSH_SEGM_ELLI_INV 7
#define MSH_SEGM_LOOP 8
#define MSH_SEGM_PARAMETRIC 888
#define MSH_SEGM_MERGEDSEGS 889
#define MSH_SEGM_BSPLN 15
#define MSH_SEGM_URBS 16
#define MSH_SEGM_NURBS 17
...
...
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