Mercurial > octave
changeset 25605:beef68dedef7
Document facenormals and vertexnormals properties of patch objects (patch #8951).
* genpropdoc.m: Document relationship between lighting and facenormal and
vertexnormal properties of patch objects.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 12 Jul 2018 22:03:02 +0200 |
parents | ca413f326224 |
children | a15fe773db71 |
files | doc/interpreter/genpropdoc.m |
diffstat | 1 files changed, 21 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/genpropdoc.m Fri Jul 13 19:13:23 2018 +0200 +++ b/doc/interpreter/genpropdoc.m Thu Jul 12 22:03:02 2018 +0200 @@ -1372,8 +1372,18 @@ the vertices). @qcode{\"phong\"} is deprecated and has the same effect as \ @qcode{\"gouraud\"}."; + case "facenormals" + s.doc = "Face normals are used for lighting the edges or faces if the \ +@code{edgelighting} or @code{facelighting} properties are set to \ +@qcode{\"flat\"}. __modemsg__"; + + case "facenormalsmode" + s.doc = "If this property is set to @qcode{\"auto\"}, \ +@code{facenormals} are automatically calculated if the @code{edgelighting} or \ +@code{facelighting} property are set to @qcode{\"flat\"} and at least one \ +@code{light} object is present and visible in the same axes."; + case "faces" - case "xdata" s.valid = valid_vecmat; case "facevertexalphadata" @@ -1401,7 +1411,6 @@ s.doc = "@xref{XREFlinemarkersize, , @w{line markersize property}}."; s.valid = "scalar"; - case "normalmode" case "specularcolorreflectance" s.doc = "Reflectance for specular color. Value between 0.0 (color \ of underlying face) and 1.0 (color of light source)."; @@ -1418,6 +1427,16 @@ s.valid = "scalar"; case "vertexnormals" + s.doc = "Vertex normals are used for lighting the edges or faces if \ +the @code{edgelighting} or @code{facelighting} properties are set to \ +@qcode{\"gouraud\"}. __modemsg__"; + + case "vertexnormalsmode" + s.doc = "If this property is set to @qcode{\"auto\"}, \ +@code{vertexnormals} are automatically calculated if the @code{edgelighting} \ +or @code{facelighting} property are set to @qcode{\"gouraud\"} and at least \ +one @code{light} object is present and visible in the same axes."; + case "vertices" s.valid = valid_vecmat;