Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
e8bdef32
Commit
e8bdef32
authored
Apr 05, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ray_near and ray_far were inverted several times. fix
parent
b8abd1f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
panel.py
printrun/gl/panel.py
+2
-2
stltool.py
printrun/stltool.py
+1
-1
No files found.
printrun/gl/panel.py
View file @
e8bdef32
...
@@ -284,9 +284,9 @@ class wxGLPanel(wx.Panel):
...
@@ -284,9 +284,9 @@ class wxGLPanel(wx.Panel):
glGetIntegerv
(
GL_VIEWPORT
,
viewport
)
glGetIntegerv
(
GL_VIEWPORT
,
viewport
)
glGetDoublev
(
GL_PROJECTION_MATRIX
,
pmat
)
glGetDoublev
(
GL_PROJECTION_MATRIX
,
pmat
)
mvmat
=
self
.
get_modelview_mat
(
local_transform
)
mvmat
=
self
.
get_modelview_mat
(
local_transform
)
gluUnProject
(
x
,
y
,
0
,
mvmat
,
pmat
,
viewport
,
px
,
py
,
pz
)
gluUnProject
(
x
,
y
,
1
,
mvmat
,
pmat
,
viewport
,
px
,
py
,
pz
)
ray_far
=
(
px
.
value
,
py
.
value
,
pz
.
value
)
ray_far
=
(
px
.
value
,
py
.
value
,
pz
.
value
)
gluUnProject
(
x
,
y
,
1
.
,
mvmat
,
pmat
,
viewport
,
px
,
py
,
pz
)
gluUnProject
(
x
,
y
,
0
.
,
mvmat
,
pmat
,
viewport
,
px
,
py
,
pz
)
ray_near
=
(
px
.
value
,
py
.
value
,
pz
.
value
)
ray_near
=
(
px
.
value
,
py
.
value
,
pz
.
value
)
return
ray_near
,
ray_far
return
ray_near
,
ray_far
...
...
printrun/stltool.py
View file @
e8bdef32
...
@@ -146,7 +146,7 @@ class stl(object):
...
@@ -146,7 +146,7 @@ class stl(object):
f
.
close
()
f
.
close
()
return
return
def
intersect
(
self
,
ray_
far
,
ray_ne
ar
):
def
intersect
(
self
,
ray_
near
,
ray_f
ar
):
"""
"""
Möller–Trumbore intersection algorithm in pure python
Möller–Trumbore intersection algorithm in pure python
Based on http://en.wikipedia.org/wiki/M
%
C3
%
B6ller
%
E2
%80%93
Trumbore_intersection_algorithm
Based on http://en.wikipedia.org/wiki/M
%
C3
%
B6ller
%
E2
%80%93
Trumbore_intersection_algorithm
...
...
Write
Preview
Markdown
is supported
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