-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Bezier patch bounds bug introduced in bf3be19.
- Loading branch information
1 parent
7f9480e
commit 3542857
Showing
4 changed files
with
55 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,24 @@ | ||
import graph3; | ||
|
||
currentprojection=orthographic(5,4,2); | ||
currentprojection=orthographic(5,5,8); | ||
|
||
size(0,150); | ||
patch s=octant1x; | ||
draw(surface(s),green+opacity(0.5)); | ||
draw(s.external(),blue); | ||
patch s0=octant1.s[0]; | ||
patch s1=octant1.s[1]; | ||
draw(surface(s0),green+opacity(0.5)); | ||
draw(surface(s1),green+opacity(0.5)); | ||
draw(s0.external(),blue); | ||
draw(s1.external(),blue); | ||
|
||
triple[][] P=s.P; | ||
triple[][] P0=s0.P; | ||
triple[][] P1=s1.P; | ||
|
||
for(int i=0; i < 4; ++i) | ||
dot(P[i],red); | ||
dot(P0[i],red+0.75mm); | ||
|
||
for(int i=0; i < 4; ++i) | ||
dot(P1[i],red+0.65mm); | ||
|
||
axes3("$x$","$y$",Label("$z$",align=Z)); | ||
triple P00=P[0][0]; | ||
triple P10=P[1][0]; | ||
triple P01=P[0][1]; | ||
triple P02=P[0][2]; | ||
triple P11=P[1][1]; | ||
triple P12=P[1][2]; | ||
triple Q11=XYplane(xypart(P11)); | ||
triple Q12=XYplane(xypart(P12)); | ||
|
||
draw(P11--Q11,dashed); | ||
draw(P12--Q12,dashed); | ||
draw(O--Q12--Q11--(Q11.x,0,0)); | ||
draw(Q12--(Q12.x,0,0)); | ||
|
||
label("$(1,0,0)$",P00,-2Y); | ||
label("$(1,a,0)$",P10,-Z); | ||
label("$(1,0,a)$",P01,-2Y); | ||
label("$(a,0,1)$",P02,Z+X-Y); | ||
label("$(1,a,a)$",P11,3X); | ||
label("$(a,a^2,1)$",P12,7X+Y); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import graph3; | ||
|
||
currentprojection=orthographic(5,4,2); | ||
|
||
size(0,150); | ||
patch s=octant1x; | ||
draw(surface(s),green+opacity(0.5)); | ||
draw(s.external(),blue); | ||
|
||
triple[][] P=s.P; | ||
|
||
for(int i=0; i < 4; ++i) | ||
dot(P[i],red); | ||
|
||
axes3("$x$","$y$",Label("$z$",align=Z)); | ||
triple P00=P[0][0]; | ||
triple P10=P[1][0]; | ||
triple P01=P[0][1]; | ||
triple P02=P[0][2]; | ||
triple P11=P[1][1]; | ||
triple P12=P[1][2]; | ||
triple Q11=XYplane(xypart(P11)); | ||
triple Q12=XYplane(xypart(P12)); | ||
|
||
draw(P11--Q11,dashed); | ||
draw(P12--Q12,dashed); | ||
draw(O--Q12--Q11--(Q11.x,0,0)); | ||
draw(Q12--(Q12.x,0,0)); | ||
|
||
label("$(1,0,0)$",P00,-2Y); | ||
label("$(1,a,0)$",P10,-Z); | ||
label("$(1,0,a)$",P01,-2Y); | ||
label("$(a,0,1)$",P02,Z+X-Y); | ||
label("$(1,a,a)$",P11,3X); | ||
label("$(a,a^2,1)$",P12,7X+Y); |