\hypertarget{group__Evas__Canvas3D__Primitive}{}\section{Primitive Object}
\label{group__Evas__Canvas3D__Primitive}\index{Primitive Object@{Primitive Object}}


A primitive object is an object with necessary data for creating meshes with ptimitive shapes.  


\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef void( \hyperlink{group__Evas__Canvas3D__Primitive_gab508376466295d7fa952cb36e8f64081}{Evas\+\_\+\+Canvas3\+D\+\_\+\+Surface\+\_\+\+Func}) (\hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} $\ast$out\+\_\+x, \hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} $\ast$out\+\_\+y, \hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} $\ast$out\+\_\+z, \hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} a, \hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} b)
\begin{DoxyCompactList}\small\item\em User-\/defined parametric surface function. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
E\+O\+A\+PI void \hyperlink{group__Evas__Canvas3D__Primitive_ga234ce7e0bd1e015ec4bb2bfb29c666b6}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, Evas\+\_\+\+Canvas3\+D\+\_\+\+Mesh\+\_\+\+Primitive form)
\begin{DoxyCompactList}\small\item\em Set the form of the given primitive. \end{DoxyCompactList}\item 
E\+O\+A\+PI Evas\+\_\+\+Canvas3\+D\+\_\+\+Mesh\+\_\+\+Primitive \hyperlink{group__Evas__Canvas3D__Primitive_ga2884433915650b9bb863a5bdb263f3ab}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the form of the given primitive. \end{DoxyCompactList}\item 
E\+O\+A\+PI void \hyperlink{group__Evas__Canvas3D__Primitive_gadaad335d0b0d130290686faf9142a06c}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, Evas\+\_\+\+Canvas3\+D\+\_\+\+Primitive\+\_\+\+Mode mode)
\begin{DoxyCompactList}\small\item\em Set the mode of the given primitive. \end{DoxyCompactList}\item 
E\+O\+A\+PI Evas\+\_\+\+Canvas3\+D\+\_\+\+Primitive\+\_\+\+Mode \hyperlink{group__Evas__Canvas3D__Primitive_ga5610bb3f85f980eeadbc18ff9c922581}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the mode of the given primitive. \end{DoxyCompactList}\item 
E\+O\+A\+PI void \hyperlink{group__Evas__Canvas3D__Primitive_gabc0430a439c7097eac4aaa52f2a85de2}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, \hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} ratio)
\begin{DoxyCompactList}\small\item\em Set the ratio of the given primitive. \end{DoxyCompactList}\item 
E\+O\+A\+PI \hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} \hyperlink{group__Evas__Canvas3D__Primitive_ga3ea86f9c177c64d34c9860ae8e545d59}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the ratio of the given primitive. \end{DoxyCompactList}\item 
E\+O\+A\+PI void \hyperlink{group__Evas__Canvas3D__Primitive_ga292ab6ad26153495bb6d2d4cc2090f25}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, int precision)
\begin{DoxyCompactList}\small\item\em Set the precision of the given primitive. \end{DoxyCompactList}\item 
E\+O\+A\+PI int \hyperlink{group__Evas__Canvas3D__Primitive_gaa990f89f6e9b5b8f975ecab656659e80}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the precision of the given primitive. \end{DoxyCompactList}\item 
E\+O\+A\+PI void \hyperlink{group__Evas__Canvas3D__Primitive_ga05e4877b88711fd1e17d2d3792bfea57}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+surface\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, \hyperlink{group__Evas__Canvas3D__Primitive_gab508376466295d7fa952cb36e8f64081}{Evas\+\_\+\+Canvas3\+D\+\_\+\+Surface\+\_\+\+Func} $\ast$surface)
\begin{DoxyCompactList}\small\item\em Set the surface of the given primitive. \end{DoxyCompactList}\item 
E\+O\+A\+PI void \hyperlink{group__Evas__Canvas3D__Primitive_ga5cb5fa27635dae0f6425723293991573}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, \hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} tex\+\_\+scale\+\_\+x, \hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} tex\+\_\+scale\+\_\+y)
\begin{DoxyCompactList}\small\item\em Set the texture scale of the given primitive. \end{DoxyCompactList}\item 
E\+O\+A\+PI void \hyperlink{group__Evas__Canvas3D__Primitive_ga7bf630fcaadc10a190e0ace8c1438b98}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, \hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} $\ast$tex\+\_\+scale\+\_\+x, \hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} $\ast$tex\+\_\+scale\+\_\+y)
\begin{DoxyCompactList}\small\item\em Get the texture scale of the given primitive. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A primitive object is an object with necessary data for creating meshes with ptimitive shapes. 

Data from a primitive can be set to Evas\+\_\+\+Canvas3\+D\+\_\+\+Mesh by using \hyperlink{group__Evas__Canvas3D__Mesh_gae3851991d108d2a9498e6204274f4e40}{evas\+\_\+canvas3d\+\_\+mesh\+\_\+from\+\_\+primitive\+\_\+set()} function. 

\subsection{Typedef Documentation}
\hypertarget{group__Evas__Canvas3D__Primitive_gab508376466295d7fa952cb36e8f64081}{}\label{group__Evas__Canvas3D__Primitive_gab508376466295d7fa952cb36e8f64081} 
\index{Primitive Object@{Primitive Object}!Evas\+\_\+\+Canvas3\+D\+\_\+\+Surface\+\_\+\+Func@{Evas\+\_\+\+Canvas3\+D\+\_\+\+Surface\+\_\+\+Func}}
\index{Evas\+\_\+\+Canvas3\+D\+\_\+\+Surface\+\_\+\+Func@{Evas\+\_\+\+Canvas3\+D\+\_\+\+Surface\+\_\+\+Func}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{Evas\+\_\+\+Canvas3\+D\+\_\+\+Surface\+\_\+\+Func}{Evas\_Canvas3D\_Surface\_Func}}
{\footnotesize\ttfamily Evas\+\_\+\+Canvas3\+D\+\_\+\+Surface\+\_\+\+Func}



User-\/defined parametric surface function. 

Used for easy creation of custom surfaces as a primitive.

\begin{DoxySince}{Since}
1.\+15 
\end{DoxySince}


\subsection{Function Documentation}
\hypertarget{group__Evas__Canvas3D__Primitive_ga234ce7e0bd1e015ec4bb2bfb29c666b6}{}\label{group__Evas__Canvas3D__Primitive_ga234ce7e0bd1e015ec4bb2bfb29c666b6} 
\index{Primitive Object@{Primitive Object}!evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+set}}
\index{evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+set}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+set()}{evas\_canvas3d\_primitive\_form\_set()}}
{\footnotesize\ttfamily E\+O\+A\+PI void evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{Evas\+\_\+\+Canvas3\+D\+\_\+\+Mesh\+\_\+\+Primitive}]{form }\end{DoxyParamCaption})}



Set the form of the given primitive. 

Form defines which function will be chosen to set data to mesh on call of evas\+\_\+canvas3d\+\_\+mesh\+\_\+primitive\+\_\+set.

Now available next forms of primitives are tabulated primitives (S\+Q\+U\+A\+RE and C\+U\+BE), solids of revolution (C\+Y\+L\+I\+N\+D\+ER, C\+O\+NE, S\+P\+H\+E\+RE and T\+O\+R\+US) and surfaces (S\+U\+R\+F\+A\+CE and T\+E\+R\+R\+A\+IN).

Default form is E\+V\+A\+S\+\_\+\+C\+A\+N\+V\+A\+S3\+D\+\_\+\+M\+E\+S\+H\+\_\+\+P\+R\+I\+M\+I\+T\+I\+V\+E\+\_\+\+N\+O\+NE.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em form} & Form of primitive. \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Canvas3D__Primitive_ga2884433915650b9bb863a5bdb263f3ab}{}\label{group__Evas__Canvas3D__Primitive_ga2884433915650b9bb863a5bdb263f3ab} 
\index{Primitive Object@{Primitive Object}!evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+get@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+get}}
\index{evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+get@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+get}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+get()}{evas\_canvas3d\_primitive\_form\_get()}}
{\footnotesize\ttfamily E\+O\+A\+PI Evas\+\_\+\+Canvas3\+D\+\_\+\+Mesh\+\_\+\+Primitive evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj }\end{DoxyParamCaption})}



Get the form of the given primitive. 

See also \hyperlink{group__Evas__Canvas3D__Primitive_ga234ce7e0bd1e015ec4bb2bfb29c666b6}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+form\+\_\+set}.

\begin{DoxyReturn}{Returns}
Form of primitive. 
\end{DoxyReturn}
\hypertarget{group__Evas__Canvas3D__Primitive_gadaad335d0b0d130290686faf9142a06c}{}\label{group__Evas__Canvas3D__Primitive_gadaad335d0b0d130290686faf9142a06c} 
\index{Primitive Object@{Primitive Object}!evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+set}}
\index{evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+set}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+set()}{evas\_canvas3d\_primitive\_mode\_set()}}
{\footnotesize\ttfamily E\+O\+A\+PI void evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{Evas\+\_\+\+Canvas3\+D\+\_\+\+Primitive\+\_\+\+Mode}]{mode }\end{DoxyParamCaption})}



Set the mode of the given primitive. 

Mode defines which function will be chosen to set data to mesh on call of evas\+\_\+canvas3d\+\_\+mesh\+\_\+primitive\+\_\+set. It helps to choose alternative algorithm for primitive with given form (like cone without base or sphere textured in alternative way).

Now available next mods of primitives are witout base (bases) (supported for cylinder and cone) and with alternative UV (supported by sphere).

Default form is E\+V\+A\+S\+\_\+\+C\+A\+N\+V\+A\+S3\+D\+\_\+\+P\+R\+I\+M\+I\+T\+I\+V\+E\+\_\+\+M\+O\+D\+E\+\_\+\+D\+E\+F\+A\+U\+LT.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em mode} & Mode of primitive. \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Canvas3D__Primitive_ga5610bb3f85f980eeadbc18ff9c922581}{}\label{group__Evas__Canvas3D__Primitive_ga5610bb3f85f980eeadbc18ff9c922581} 
\index{Primitive Object@{Primitive Object}!evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+get@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+get}}
\index{evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+get@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+get}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+get()}{evas\_canvas3d\_primitive\_mode\_get()}}
{\footnotesize\ttfamily E\+O\+A\+PI Evas\+\_\+\+Canvas3\+D\+\_\+\+Primitive\+\_\+\+Mode evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj }\end{DoxyParamCaption})}



Get the mode of the given primitive. 

See also \hyperlink{group__Evas__Canvas3D__Primitive_gadaad335d0b0d130290686faf9142a06c}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+mode\+\_\+set}.

\begin{DoxyReturn}{Returns}
Mode of primitive. 
\end{DoxyReturn}
\hypertarget{group__Evas__Canvas3D__Primitive_gabc0430a439c7097eac4aaa52f2a85de2}{}\label{group__Evas__Canvas3D__Primitive_gabc0430a439c7097eac4aaa52f2a85de2} 
\index{Primitive Object@{Primitive Object}!evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+set}}
\index{evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+set}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+set()}{evas\_canvas3d\_primitive\_ratio\_set()}}
{\footnotesize\ttfamily E\+O\+A\+PI void evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{\hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real}}]{ratio }\end{DoxyParamCaption})}



Set the ratio of the given primitive. 

Now ratio uses only in torus as the ratio of the major radius and minor radius. For this usage Available values is from 1.\+0 to infinity. If ratio for torus has a bad value, will be used 3.\+0 as ratio. Like ratio of usual doughnut.

Default ratio is 3.\+0.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em ratio} & Ratio of primitive. \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Canvas3D__Primitive_ga3ea86f9c177c64d34c9860ae8e545d59}{}\label{group__Evas__Canvas3D__Primitive_ga3ea86f9c177c64d34c9860ae8e545d59} 
\index{Primitive Object@{Primitive Object}!evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+get@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+get}}
\index{evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+get@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+get}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+get()}{evas\_canvas3d\_primitive\_ratio\_get()}}
{\footnotesize\ttfamily E\+O\+A\+PI \hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj }\end{DoxyParamCaption})}



Get the ratio of the given primitive. 

See also \hyperlink{group__Evas__Canvas3D__Primitive_gabc0430a439c7097eac4aaa52f2a85de2}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+ratio\+\_\+set}.

\begin{DoxyReturn}{Returns}
Ratio of primitive. 
\end{DoxyReturn}
\hypertarget{group__Evas__Canvas3D__Primitive_ga292ab6ad26153495bb6d2d4cc2090f25}{}\label{group__Evas__Canvas3D__Primitive_ga292ab6ad26153495bb6d2d4cc2090f25} 
\index{Primitive Object@{Primitive Object}!evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+set}}
\index{evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+set}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+set()}{evas\_canvas3d\_primitive\_precision\_set()}}
{\footnotesize\ttfamily E\+O\+A\+PI void evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{int}]{precision }\end{DoxyParamCaption})}



Set the precision of the given primitive. 

Precision uses in all non tabulated primitives and defines precision of created primitives. Available values is from 3 to infinity. But if value will be more than 100, should be a warning about possibility of incorrect or slow work.

Default ratio is 10.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em precision} & Precision of primitive. \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Canvas3D__Primitive_gaa990f89f6e9b5b8f975ecab656659e80}{}\label{group__Evas__Canvas3D__Primitive_gaa990f89f6e9b5b8f975ecab656659e80} 
\index{Primitive Object@{Primitive Object}!evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+get@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+get}}
\index{evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+get@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+get}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+get()}{evas\_canvas3d\_primitive\_precision\_get()}}
{\footnotesize\ttfamily E\+O\+A\+PI int evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj }\end{DoxyParamCaption})}



Get the precision of the given primitive. 

See also \hyperlink{group__Evas__Canvas3D__Primitive_ga292ab6ad26153495bb6d2d4cc2090f25}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+precision\+\_\+set}.

\begin{DoxyReturn}{Returns}
Precision of primitive. 
\end{DoxyReturn}
\hypertarget{group__Evas__Canvas3D__Primitive_ga05e4877b88711fd1e17d2d3792bfea57}{}\label{group__Evas__Canvas3D__Primitive_ga05e4877b88711fd1e17d2d3792bfea57} 
\index{Primitive Object@{Primitive Object}!evas\+\_\+canvas3d\+\_\+primitive\+\_\+surface\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+surface\+\_\+set}}
\index{evas\+\_\+canvas3d\+\_\+primitive\+\_\+surface\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+surface\+\_\+set}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{evas\+\_\+canvas3d\+\_\+primitive\+\_\+surface\+\_\+set()}{evas\_canvas3d\_primitive\_surface\_set()}}
{\footnotesize\ttfamily E\+O\+A\+PI void evas\+\_\+canvas3d\+\_\+primitive\+\_\+surface\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{\hyperlink{group__Evas__Canvas3D__Primitive_gab508376466295d7fa952cb36e8f64081}{Evas\+\_\+\+Canvas3\+D\+\_\+\+Surface\+\_\+\+Func} $\ast$}]{surface }\end{DoxyParamCaption})}



Set the surface of the given primitive. 

Surface uses only in surface primitive and defines equation of filling mesh data on call of evas\+\_\+canvas3d\+\_\+mesh\+\_\+primitive\+\_\+set.

It gives possibility to create customers primitives like shell, heart, hyperbolic paraboloid etc. See \+\_\+shell\+\_\+func in examples/evas/evas-\/3d-\/visual-\/test.\+c or \+\_\+perlin\+\_\+terrain in modules/evas/primitives/surfaces/terrain.\+c as an example of usage.

Default surface is {\ttfamily null} 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em surface} & Pointer to customers surface function. \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Canvas3D__Primitive_ga5cb5fa27635dae0f6425723293991573}{}\label{group__Evas__Canvas3D__Primitive_ga5cb5fa27635dae0f6425723293991573} 
\index{Primitive Object@{Primitive Object}!evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+set}}
\index{evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+set@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+set}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+set()}{evas\_canvas3d\_primitive\_tex\_scale\_set()}}
{\footnotesize\ttfamily E\+O\+A\+PI void evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+set (\begin{DoxyParamCaption}\item[{\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{\hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real}}]{tex\+\_\+scale\+\_\+x,  }\item[{\hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real}}]{tex\+\_\+scale\+\_\+y }\end{DoxyParamCaption})}



Set the texture scale of the given primitive. 

Texture scale uses in all non tabulated primitives and defines scale of texture coords or primitives.

It uses to create periodical textured meshes.

Default tex\+\_\+scale is \{1.\+0, 1.\+0\}


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em tex\+\_\+scale\+\_\+x} & \\
\hline
\mbox{\tt in}  & {\em tex\+\_\+scale\+\_\+y} & \\
\hline
\end{DoxyParams}
\hypertarget{group__Evas__Canvas3D__Primitive_ga7bf630fcaadc10a190e0ace8c1438b98}{}\label{group__Evas__Canvas3D__Primitive_ga7bf630fcaadc10a190e0ace8c1438b98} 
\index{Primitive Object@{Primitive Object}!evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+get@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+get}}
\index{evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+get@{evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+get}!Primitive Object@{Primitive Object}}
\subsubsection{\texorpdfstring{evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+get()}{evas\_canvas3d\_primitive\_tex\_scale\_get()}}
{\footnotesize\ttfamily E\+O\+A\+PI void evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+get (\begin{DoxyParamCaption}\item[{const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$}]{obj,  }\item[{\hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} $\ast$}]{tex\+\_\+scale\+\_\+x,  }\item[{\hyperlink{group__Evas_gafe9cc74872ef141d258c2162fa0ce5ca}{Evas\+\_\+\+Real} $\ast$}]{tex\+\_\+scale\+\_\+y }\end{DoxyParamCaption})}



Get the texture scale of the given primitive. 

See also \hyperlink{group__Evas__Canvas3D__Primitive_ga5cb5fa27635dae0f6425723293991573}{evas\+\_\+canvas3d\+\_\+primitive\+\_\+tex\+\_\+scale\+\_\+set}.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em tex\+\_\+scale\+\_\+x} & \\
\hline
\mbox{\tt out}  & {\em tex\+\_\+scale\+\_\+y} & \\
\hline
\end{DoxyParams}
