ConstructiveSolidGeometry.jl A constructive solid geometry and ray - - PowerPoint PPT Presentation

constructivesolidgeometry jl
SMART_READER_LITE
LIVE PREVIEW

ConstructiveSolidGeometry.jl A constructive solid geometry and ray - - PowerPoint PPT Presentation

ConstructiveSolidGeometry.jl A constructive solid geometry and ray tracing package for scientific simulation Speaker: John Tramm 1 Outline Intro to constructive solid geometry (CSG) Intro to ray tracing Motivation for package


slide-1
SLIDE 1

ConstructiveSolidGeometry.jl

A constructive solid geometry and ray tracing package for scientific simulation Speaker: John Tramm

1

slide-2
SLIDE 2

Outline

  • Intro to constructive solid geometry (CSG)
  • Intro to ray tracing
  • Motivation for package
  • Functionality
  • Interesting implementation details
  • Demo

2

slide-3
SLIDE 3

What is Constructive Solid Geometry (CSG)?

3

slide-4
SLIDE 4

What is Ray Tracing?

  • Ray
  • Origin
  • Direction
  • Ray tracing determines:
  • Which region a point is in
  • Closest intersection

4

slide-5
SLIDE 5

Motivation for Package

  • Needed by some simulation

methods

  • Particularly reactor physics
  • Needed by students in course 22

(Nuclear Engineering)

  • No existing CSG/ray tracing

packages in Julia Geometry & Ray Tracing

Monte Carlo Method of Characteristics Collision Probability Method

5

slide-6
SLIDE 6

ConstructiveSolidGeometry.jl Functionality

  • Create primitive 2D/3D shapes
  • Logically assemble shapes
  • Plot slices
  • Performs ray tracing
  • Well documented with

annotated examples

  • Enables easy development of

physics applications

6

slide-7
SLIDE 7

Implementation Detail of Note: Expressions

  • Logical construction of regions is

a tree

  • (1∩2) ∩~(3 ∪(4∪5))
  • Julia Expressions make this easy
  • Recursive function to navigate

Julia Expression tree

1 2 3 4 5

7

slide-8
SLIDE 8

Quick Demo

8