bugGNU Octave - Bugs: bug #42083, Can't set...

 
 

bug #42083: Can't set "vertexnormals" to its factory default

Submitter:  Pantxo Diribarne <pantxo>
Submitted:  Wed 09 Apr 2014 10:11:39 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 12 Apr 2014 04:32:13 PM UTC, comment #2: 

I applied your patch to the development branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/ce144b2ab46c).  Thanks Pantxo.  I'm going to find the other big patch you had for graphics.in.h and commit that today too.

Rik <rik5>
Group administrator
Thu 10 Apr 2014 06:34:00 AM UTC, comment #1: 


su = surface ();
set (su, "vertexnormals", get (0, "factorysurfacevertexnormals"))
## error: invalid value for array property "vertexnormals"


Here the factory default is an empty matrix (as in matlab), but there is a
constraint on "vertexnormals" that prevent empty matrices. It was probably
introduced by changeset [1].
I attached a patch.

[1] http://hg.savannah.gnu.org/hgweb/octave/rev/94dd9bba06a0

Pantxo Diribarne <pantxo>
Group Member
Wed 09 Apr 2014 10:11:39 PM UTC, original submission:  

The following used to work in 3.6.4 and works in Matlab:


su = surface ();
set (su, "vertexnormals", get (0, "factorysurfacevertexnormals"))
## error: invalid value for array property "vertexnormals"
-verbatim+

Here the factory default is an empty matrix (as in matlab), but there is a constraint on "vertexnormals" that prevent empty matrices. It was probably introduced by changeset [1].
I attached a patch.

[1] http://hg.savannah.gnu.org/hgweb/octave/rev/94dd9bba06a0

Pantxo Diribarne <pantxo>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #31147:  allow_empty_vertexnormals.patch added by pantxo (727B - application/x-download)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by pantxo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-12 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2014-04-09 pantxo Attached File- Added allow_empty_vertexnormals.patch, #31147

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code