OpenCLLink`
OpenCLLink`

OpenCLImplicitRender3D

OpenCLImplicitRender3D[poly,vars,r]

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"].
  • OpenCLImplicitRender3D is similar to ContourPlot3D.
  • The format of "SliderParameters" is {min,max,default} and it controls the parameter w.
  • PerformanceGoal can be set to "Quality" or "Speed".
  • "SingleFrameParameters" is a list in the format {cameraPos,w,lightPos}. cameraPos is in cylindrical coordinates, while lightPos is given in Cartesian coordinates. The parameter w is a single real number.
  • The following options can be given:
  • AspectRatio1.ratio of height to width of output
    ImageSize256width of output
    PerformanceGoalAutomatictarget rendering performance
    "Device"Automaticdevice on which OpenCL computation is performed
    "Floor"Falseenable or disable floor in rendering
    "FloorPosition"-5.position of floor
    "Platform"Automaticplatform on which OpenCL computation is performed
    "Precision"0.01epsilon distance between surface and ray to be considered a hit
    "Shadows"Trueenable or disable ray tracing of shadows
    "SingleFrame"Falsedisplay only one frame of rendering
    "SingleFrameParameters"Nonea list containing camera position, fractal parameters, and light position
    "SliderParameters"{-20., 20., 0.}slider parameters for the free variable w
    "TargetPrecision""Single"precision used in calculation
    "BlockSize"128size of launch block size
  • 范例

    打开所有单元关闭所有单元

    基本范例  (8)

    First, load the OpenCLLink application:

    In[1]:=
    Click for copyable input

    This renders the tangle surface:

    In[2]:=
    Click for copyable input
    In[3]:=
    Click for copyable input
    Out[3]=

    This renders the Barth sextic surface:

    In[1]:=
    Click for copyable input
    Out[1]=

    This renders the Klein bottle with higher precision:

    In[1]:=
    Click for copyable input
    Out[1]=

    This renders a bifolia surface:

    In[1]:=
    Click for copyable input
    Out[1]=

    This renders a Boy surface:

    In[1]:=
    Click for copyable input
    Out[1]=

    The parameter can be changed:

    In[1]:=
    Click for copyable input
    Out[1]=

    This renders a heart surface:

    In[1]:=
    Click for copyable input
    Out[1]=

    This renders a kiss surface:

    In[1]:=
    Click for copyable input
    Out[1]=

    Neat Examples  (13)

    参见

    OpenCLFunction  OpenCLFunctionLoad  OpenCLFractalRender3D

    教程