|
SOLUTIONS
|
OPENCLLINK 符号
OpenCLImplicitRender3D
ray traces the implicit surface poly=0 as a function of vars with bound sphere of radius r.
更多信息更多信息
- The OpenCLLink application must be loaded using Needs["OpenCLLink"].
is similar to ContourPlot3D.- The format of
is
and it controls the parameter
. - PerformanceGoal can be set to
or
.
is a list in the format
. cameraPos is in cylindrical coordinates, while lightPos is given in Cartesian coordinates. The parameter
is a single real number.- The following options can be given:
-
AspectRatio 1. ratio of height to width of output ImageSize 256 width of output PerformanceGoal Automatic target rendering performance "Device" Automatic device on which OpenCL computation is performed "Floor" False enable or disable floor in rendering "FloorPosition" -5. position of floor "Platform" Automatic platform on which OpenCL computation is performed "Precision" 0.01 epsilon distance between surface and ray to be considered a hit "Shadows" True enable or disable ray tracing of shadows "SingleFrame" False display only one frame of rendering "SingleFrameParameters" None a list containing camera position, fractal parameters, and light position "SliderParameters" {-20., 20., 0.} slider parameters for the free variable 
"TargetPrecision" "Single" precision used in calculation "BlockSize" 128 size of launch block size
范例范例打开所有单元关闭所有单元
基本范例 (8)基本范例 (8)
First, load the OpenCLLink application:
| In[1]:= |
This renders the tangle surface:
| In[2]:= |
| In[3]:= |
| Out[3]= | ![]() |
This renders the Barth sextic surface:
| In[1]:= |
| Out[1]= | ![]() |
This renders the Klein bottle with higher precision:
| In[1]:= |
| Out[1]= | ![]() |
This renders a bifolia surface:
| In[1]:= |
| Out[1]= | ![]() |
| In[1]:= |
| Out[1]= | ![]() |
| In[1]:= |
| Out[1]= | ![]() |
| In[1]:= |
| Out[1]= | ![]() |
| In[1]:= |
| Out[1]= | ![]() |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »













