Editing Povray

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 8: Line 8:
  
 
= Primitives that are working properly =  
 
= Primitives that are working properly =  
= Arbitrary convex polyhedra =
 
== ARB8 ==
 
This primitive is formed in POV-Ray using mesh.The mesh object can be used to efficiently store large numbers of triangles.
 
Example:
 
    mesh{triangle{a,b,c}triangle{a,c,d}triangle{a,d,f}
 
    triangle{g,h,c}triangle{e,f,g}triangle{e,g,h}}
 
 
== ARBN ==
 
An arbn record is specified by N sets of intersecting planes, each defined by four coefficients:
 
 
* the {X, Y, Z} coefficients of the plane's normal vector pointing outward from the center of the arbn shape, and
 
*the perpendicular distance of that plane from the origin.
 
Its exported in POV-Ray by using intersection of Planes.
 
Example:
 
    intersection{ plane{<x, y, z coefficients>, normal} .... }
 
 
 
= Ellipsoids =
 
== ELL ==
 
This primitive is named as spheroid in POV-Ray. It is having
 
Center Vector, Radius Vector
 
Example:
 
      Spheroid(<-1.50,3.00,-2.00>,<2.0,1.2,2.5> )
 
 
== ELLG, ELL1 ==
 
These primitives are exported under Ell
 
 
== EHY ==
 
Elliptical Hyperboloid of BRL-CAD can be formed by POV-Ray.
 
Currently its coordinates are exported successfully and is done by using quadric equartions of POV-Ray
 
 
== EPA ==
 
Elliptical Paraboloid in BRL-CAD. Its coordinates are exported successfully and is done by using quadric equartions of POV-Ray
 
 
 
== Sphere ==
 
== Sphere ==
 
Sphere is formed by
 
Sphere is formed by
Line 48: Line 14:
 
       sphere { Center, Radius [OBJECT_MODIFIERS...]}
 
       sphere { Center, Radius [OBJECT_MODIFIERS...]}
  
 
+
== Torus ==
= Cones and Cylinders =
+
Torus is created using
== Truncated General Cone ==
+
major radius and minor radius
This primitive of BRL-CAD is formed by using Supercone of POV-Ray.
 
 
Example:
 
Example:
     Supercone( //point A, axis Ax, axis Az:<0.0,0.0,0.0>, 0.5, 1.0,
+
     torus { 4, 1 pigment { Green }}
                // point B, axis Bx, axis Bz:<0.0,1.5,0.0>, 0.7, 0.4)}
 
  
 
== Cone ==
 
== Cone ==
Line 62: Line 26:
 
Example:
 
Example:
 
       cone {<0, 1, 0>, 0.3  <1, 2, 3>, 1.0 texture { T_Stone25 scale 4 }}
 
       cone {<0, 1, 0>, 0.3  <1, 2, 3>, 1.0 texture { T_Stone25 scale 4 }}
 
== TEC ==
 
Its also exported under TGC.
 
 
== REC ==
 
Its exported nuder TGC.
 
 
== TRC ==
 
Its also under TGC
 
  
 
== Cylender ==
 
== Cylender ==
Line 78: Line 33:
 
       cylinder { <0, 1, 0>,<1, 2, 3>,0.5 }}
 
       cylinder { <0, 1, 0>,<1, 2, 3>,0.5 }}
  
== RHC ==
+
== Ellipsoids ==
Right Hyperbolic Cylinder in BRL-CAD. Coordinates are exported successfully. It can be formed by using function
+
This primitive is named as spheroid in POV-Ray. It is having
       function { pow(x,2) + y }
+
Center Vector, Radius Vector
of POV-Ray.
+
Example:
 +
       Spheroid(<-1.50,3.00,-2.00>,<2.0,1.2,2.5> )
  
== RPC ==
+
== ARB8 ==
Right Parabolic Cylinder in BRL-CAD. Coordinates are exported successfully. It also formed by the using functions of POV-Ray.
+
This primitive is formed in POV-Ray using mesh.The mesh object can be used to efficiently store large numbers of triangles.
 
 
= Other Solids =
 
 
 
== Torus ==
 
Torus is created using
 
major radius and minor radius
 
 
Example:
 
Example:
     torus { 4, 1 pigment { Green }}
+
     mesh{triangle{a,b,c}triangle{a,c,d}triangle{a,d,f}
 +
    triangle{g,h,c}triangle{e,f,g}triangle{e,g,h}}
  
 
== Particle ==
 
== Particle ==
Line 101: Line 52:
 
     // point B, radius B:<0,1,0>, 0.40,)
 
     // point B, radius B:<0,1,0>, 0.40,)
  
== half ==
+
== Truncated General Cone ==
Half primitive of BRL-CAD is export into POV-Ray as Plane.
+
This primitive of BRL-CAD is formed by using Supercone of POV-Ray.  
 
Example:
 
Example:
      plane { <Normal>, Distance }
+
    Supercone( //point A, axis Ax, axis Az:<0.0,0.0,0.0>, 0.5, 1.0,
 +
                // point B, axis Bx, axis Bz:<0.0,1.5,0.0>, 0.7, 0.4)}
  
== BOT ==
+
= Primitives that are under work =
Bag of triangles in BRL-CAD. Its exported by using triangles in POV-Ray.
 
 
 
 
 
= Primitives that are under progress =
 
 
== ETO ==
 
== ETO ==
 
Elliptical torus of BRL-CAD can be formed by using some methods. One of them is by using function i.e. f_torus
 
Elliptical torus of BRL-CAD can be formed by using some methods. One of them is by using function i.e. f_torus
Line 116: Line 64:
 
       f_torus(x,y,z,1*(y+0.4),0.1 )
 
       f_torus(x,y,z,1*(y+0.4),0.1 )
  
== extrude ==
+
== EHY ==
Currently, data of extrude is exported successfully. Remaining part is how to export sketch and relate it with extrude.
+
Elliptical Hyperboloid of BRL-CAD can be formed by POV-Ray.
 +
Currently its coordinates are exported successfully but ehy is not working
  
= Primitives that are not under work yet =
+
== EPA ==
 +
Elliptical Paraboloid in BRL-CAD. Its coordinates are exported successfully but ehy is not working yet.
  
== derived from 2d ==
+
== RHC ==
 +
Right Hyperbolic Cylinder in BRL-CAD. Coordinates are exported successfully. It can be formed by using function
 +
      function { pow(x,2) + y }
 +
of POV-Ray but its not working well. Its under discussion with POV-Ray community
  
=== revolve ===
+
== RPC ==
=== dsp ===
+
Right Parabolic Cylinder in BRL-CAD. Coordinates are exported successfully. It also formed by the using functions of POV-Ray but under work.
=== ebm ===
 
=== hf ===
 
 
 
== Other solids ==
 
 
 
=== pipe ===
 
=== ars ===
 
=== metaball ===
 
=== nurb ===
 
=== spline ===
 
=== vol ===
 
=== poly ===
 
=== hrt ===
 
 
 
== Other ==
 
 
 
=== Sketch ===
 
=== grip ===
 
=== binunif ===
 
=== submodel ===
 

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)