bugpyFormex - Bugs: bug #45147, Bug in vtk_itf.octree

 
 

bug #45147: Bug in vtk_itf.octree

Submitter:  Benedict Verhegghe <bverheg>
Submitted:  Wed 20 May 2015 10:39:34 AM UTC
   
 
Category:  Plugins Severity:  3 - Normal
Item Group:  Functionality error Status:  Fixed
Privacy:  Public Assigned to:  francio
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 24 May 2015 11:12:41 AM UTC, comment #4: 

OK.

I changed (in 0775678) the final rendering of the example, to show only the cells with at least one point (as was claimed by
the docstring).

Benedict Verhegghe <bverheg>
Group administrator
Sun 24 May 2015 10:56:08 AM UTC, comment #3: 

the colors seem random bacause the function returns the octree colored with property == number of points inside the hex. in the example the red (prop=1) indicates only one point is in the cell (controlled by the npts parameter). select the props !=0 to check that all the points are inside the red hexs.

if you need to select the elements of each level, you should use the second variable returned, which is a list of indices of the hex of each level.
hope it is clear.

francesco <francio>
Group Member
Sun 24 May 2015 09:25:25 AM UTC, comment #2: 

The example runs now, nut it looks like the results are incorrect. The cells look like more or less randomly colored.

Benedict Verhegghe <bverheg>
Group administrator
Sat 23 May 2015 06:38:23 PM UTC, comment #1: 

Fixed in commit 7693199

francesco <francio>
Group Member
Wed 20 May 2015 10:39:34 AM UTC, original submission:  

The Octree example does not run because of a bug in vtk)itf.octree:


  File "/home/bene/prj/pyformex/pyformex/examples/Octree.py", line 57, in run

levels = octree(sf)
  File "/home/bene/prj/pyformex/pyformex/plugins/vtk_itf.py", line 1340, in octree

loc.SetMaximumPointsPerRegion(npts)
TypeError
:
SetMaximumPointsPerRegion argument 1: integer argument expected, got float


Benedict Verhegghe <bverheg>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by francio (Posted a comment)
  • -email is unavailable- added by bverheg (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 logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-24 bverheg StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2015-05-23 francio StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code