Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GeoModel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GeoModelDev
GeoModel
Commits
91d3e325
Commit
91d3e325
authored
1 year ago
by
Riccardo Maria Bianchi
Browse files
Options
Downloads
Patches
Plain Diff
Fix example Torus
parent
8eb4f731
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!332
Move R4 shapes to the new DB schema and I/O
Pipeline
#7644675
failed
1 year ago
Stage: step-A
Stage: step-B
Stage: step-C
Stage: step-D
Stage: step-E
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GeoModelExamples/HelloToy/step1_create_store_geo_and_publish_nodes.cpp
+1
-1
1 addition, 1 deletion
...les/HelloToy/step1_create_store_geo_and_publish_nodes.cpp
with
1 addition
and
1 deletion
GeoModelExamples/HelloToy/step1_create_store_geo_and_publish_nodes.cpp
+
1
−
1
View file @
91d3e325
...
@@ -451,7 +451,7 @@ int main(int argc, char *argv[])
...
@@ -451,7 +451,7 @@ int main(int argc, char *argv[])
// Add a test "Torus" shape node
// Add a test "Torus" shape node
const
GeoTorus
*
sTorus
=
new
GeoTorus
(
2
*
SYSTEM_OF_UNITS
::
m
,
1
*
SYSTEM_OF_UNITS
::
m
,
10
*
SYSTEM_OF_UNITS
::
m
,
0
*
SYSTEM_OF_UNITS
::
rad
,
(
270
*
SYSTEM_OF_UNITS
::
degree
)
*
(
SYSTEM_OF_UNITS
::
rad
/
SYSTEM_OF_UNITS
::
degree
)
);
const
GeoTorus
*
sTorus
=
new
GeoTorus
(
2
*
SYSTEM_OF_UNITS
::
m
,
1
*
SYSTEM_OF_UNITS
::
m
,
10
*
SYSTEM_OF_UNITS
::
m
,
0
*
SYSTEM_OF_UNITS
::
rad
,
4.5
*
SYSTEM_OF_UNITS
::
rad
);
const
GeoLogVol
*
lTorus
=
new
GeoLogVol
(
"Torus"
,
sTorus
,
steel
);
const
GeoLogVol
*
lTorus
=
new
GeoLogVol
(
"Torus"
,
sTorus
,
steel
);
GeoPhysVol
*
pTorus
=
new
GeoPhysVol
(
lTorus
);
GeoPhysVol
*
pTorus
=
new
GeoPhysVol
(
lTorus
);
GeoNameTag
*
nTorus
=
new
GeoNameTag
(
"Shape-Torus"
);
GeoNameTag
*
nTorus
=
new
GeoNameTag
(
"Shape-Torus"
);
...
...
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