Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DACH
Ray tracing X-ray Projection Simulator
Commits
95add095
Commit
95add095
authored
Feb 12, 2021
by
Johannes Maul
Browse files
meshStructureSvg for Readme
parent
59f33bfa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Data/Images/MeshStructure.svg
0 → 100644
View file @
95add095
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc=
"http://purl.org/dc/elements/1.1/"
xmlns:cc=
"http://creativecommons.org/ns#"
xmlns:rdf=
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:sodipodi=
"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape=
"http://www.inkscape.org/namespaces/inkscape"
width=
"166.47743mm"
height=
"96.023903mm"
viewBox=
"0 0 166.47743 96.023903"
version=
"1.1"
id=
"svg8"
inkscape:version=
"0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname=
"MeshStructure.svg"
>
<defs
id=
"defs2"
/>
<sodipodi:namedview
id=
"base"
pagecolor=
"#ffffff"
bordercolor=
"#666666"
borderopacity=
"1.0"
inkscape:pageopacity=
"0.0"
inkscape:pageshadow=
"2"
inkscape:zoom=
"2"
inkscape:cx=
"332.14533"
inkscape:cy=
"159.88323"
inkscape:document-units=
"mm"
inkscape:current-layer=
"layer1"
showgrid=
"false"
inkscape:window-width=
"3440"
inkscape:window-height=
"1377"
inkscape:window-x=
"-8"
inkscape:window-y=
"-8"
inkscape:window-maximized=
"1"
/>
<metadata
id=
"metadata5"
>
<rdf:RDF>
<cc:Work
rdf:about=
""
>
<dc:format>
image/svg+xml
</dc:format>
<dc:type
rdf:resource=
"http://purl.org/dc/dcmitype/StillImage"
/>
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label=
"Ebene 1"
inkscape:groupmode=
"layer"
id=
"layer1"
transform=
"translate(0.33494324,-34.674957)"
>
<g
id=
"g1077"
>
<path
inkscape:connector-curvature=
"0"
id=
"path815"
d=
"M 19.510675,76.893246 V 126.89325"
style=
"fill:none;stroke:#000000;stroke-width:0.27513745px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
/>
<path
inkscape:connector-curvature=
"0"
id=
"path815-6"
d=
"M 153.27907,76.893244 V 126.89325"
style=
"fill:none;stroke:#000000;stroke-width:0.27513745px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
/>
<path
inkscape:connector-curvature=
"0"
id=
"path815-1"
d=
"M 54.122079,76.893247 V 126.89325"
style=
"fill:none;stroke:#000000;stroke-width:0.27513745px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
/>
<path
inkscape:connector-curvature=
"0"
id=
"path815-4"
d=
"M 120.67219,76.893245 V 126.89325"
style=
"fill:none;stroke:#000000;stroke-width:0.27513745px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
/>
<path
inkscape:connector-curvature=
"0"
id=
"path815-1-4"
d=
"M 54.341667,76.893244 V 126.89325"
style=
"fill:none;fill-opacity:1;stroke:#ff0047;stroke-width:0.27513745px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
/>
<path
inkscape:connector-curvature=
"0"
id=
"path815-1-4-3"
d=
"M 120.6185,76.893242 V 126.89325"
style=
"fill:none;fill-opacity:1;stroke:#ff0047;stroke-width:0.27513745px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
/>
<path
inkscape:connector-curvature=
"0"
id=
"path885"
d=
"M 7.2162772,127.55112 C 166.10801,84.65436 166.10801,84.65436 166.10801,84.65436"
style=
"fill:none;stroke:#0090ff;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
/>
<rect
rx=
"0"
ry=
"0"
y=
"34.674957"
x=
"10.156243"
height=
"12.561667"
width=
"8.0180855"
id=
"rect887"
style=
"fill:#000000;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke markers fill"
/>
<rect
rx=
"0"
ry=
"0"
y=
"47.236626"
x=
"10.156241"
height=
"12.561667"
width=
"8.0180855"
id=
"rect887-4"
style=
"fill:#ff0047;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke markers fill"
/>
<rect
rx=
"0"
ry=
"0"
y=
"59.798294"
x=
"10.156241"
height=
"12.561667"
width=
"8.0180855"
id=
"rect887-4-9"
style=
"fill:#0090ff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke markers fill"
/>
<text
id=
"text931"
y=
"42.067867"
x=
"23.118814"
style=
"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
xml:space=
"preserve"
><tspan
style=
"stroke-width:0.26458332"
y=
"42.067867"
x=
"23.118814"
id=
"tspan929"
sodipodi:role=
"line"
>
Region 1: e.g. Fat
</tspan></text>
<text
id=
"text931-3"
y=
"54.688446"
x=
"23.118814"
style=
"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
xml:space=
"preserve"
><tspan
style=
"stroke-width:0.26458332"
y=
"54.688446"
x=
"23.118814"
id=
"tspan929-8"
sodipodi:role=
"line"
>
Region 2: e.g. gland
</tspan></text>
<text
id=
"text931-3-6"
y=
"67.261482"
x=
"23.118814"
style=
"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
xml:space=
"preserve"
><tspan
style=
"stroke-width:0.26458332"
y=
"67.261482"
x=
"23.118814"
id=
"tspan929-8-6"
sodipodi:role=
"line"
>
Example ray
</tspan></text>
<text
id=
"text971"
y=
"130.63478"
x=
"17.506153"
style=
"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
xml:space=
"preserve"
><tspan
style=
"stroke-width:0.26458332"
y=
"130.63478"
x=
"17.506153"
id=
"tspan969"
sodipodi:role=
"line"
>
1
</tspan></text>
<text
id=
"text971-2"
y=
"130.63478"
x=
"50.89698"
style=
"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
xml:space=
"preserve"
><tspan
y=
"130.63478"
x=
"50.89698"
id=
"tspan1037"
sodipodi:role=
"line"
>
2
</tspan></text>
<text
id=
"text971-2-5"
y=
"130.63478"
x=
"54.531845"
style=
"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
xml:space=
"preserve"
><tspan
y=
"130.63478"
x=
"54.531845"
id=
"tspan1039"
sodipodi:role=
"line"
>
3
</tspan></text>
<text
id=
"text971-2-7"
y=
"130.63478"
x=
"117.30009"
style=
"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
xml:space=
"preserve"
><tspan
y=
"130.63478"
x=
"117.30009"
id=
"tspan1041"
sodipodi:role=
"line"
>
4
</tspan></text>
<text
id=
"text971-2-1"
y=
"130.63478"
x=
"121.41605"
style=
"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
xml:space=
"preserve"
><tspan
y=
"130.63478"
x=
"121.41605"
id=
"tspan1043"
sodipodi:role=
"line"
>
5
</tspan></text>
<text
id=
"text971-2-4"
y=
"130.63478"
x=
"151.53732"
style=
"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
xml:space=
"preserve"
><tspan
y=
"130.63478"
x=
"151.53732"
id=
"tspan1045"
sodipodi:role=
"line"
>
6
</tspan></text>
<text
id=
"text1035"
y=
"130.61205"
x=
"-0.74835467"
style=
"font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
xml:space=
"preserve"
><tspan
style=
"stroke-width:0.26458332"
y=
"130.61205"
x=
"-0.74835467"
id=
"tspan1033"
sodipodi:role=
"line"
>
Hits:
</tspan></text>
</g>
</g>
</svg>
MatlabWrappers/easyExample.m
View file @
95add095
...
...
@@ -38,7 +38,6 @@ function easyExample(exampleType, buildDefault)
[
nodes
,
~
,
faces
]
=
vol2mesh
(
uint8
(
testVolume
),
1
:
testVolumeSize
(
1
),
1
:
testVolumeSize
(
2
),
1
:
testVolumeSize
(
3
),
1.5
,
1.5
,
1
,
'cgalmesh'
,
isoValues
);
%just usable with iso2mesh repo! http://iso2mesh.sourceforge.net/cgi-bin/index.cgi
faces
=
unique
(
faces
,
'rows'
);
%special for vol2mesh were the outer layer got an air layer which destroys the calculation
% faces(:,4) = faces(:,4) - 1; %currently non dynamic labels
% nodes(:,1:2) = nodes(:,1:2) +10;
end
tic
;
...
...
MatlabWrappers/printAll.m
View file @
95add095
function
printAll
(
nodes
,
faces
,
source
,
detectors
,
detectorId
)
%Zum Ausgeben des Mesh, der Quelle, detectoren, strahlen
%Funktion die das Mesh ausgibt
%
figure;
figure
;
tiledlayout
(
'flow'
)
nexttile
;
hold
on
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment