[vtk-developers] [VTK 0012751]: vtkArcSource does not draw correctly arcs with angular sector of 180°

Mantis Bug Tracker mantis at public.kitware.com
Mon Nov 28 16:54:18 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=12751 
====================================================================== 
Reported By:                Philippe Pebay
Assigned To:                Berk Geveci
====================================================================== 
Project:                    VTK
Issue ID:                   12751
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   urgent
Status:                     tabled
Project:                    Kitware 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-11-28 16:54 EST
Last Modified:              2011-11-28 16:54 EST
====================================================================== 
Summary:                    vtkArcSource does not draw correctly arcs with
angular sector of 180°
Description: 
This script allows for the reproduction of the bug:

############################################################
from vtk import *
############################################################

# Create sources
arc = vtkArcSource()
arc.SetCenter( 0, 0, 0 )
arc.SetPoint1( 1, 0, 0 )
arc.SetPoint2( -1, 0, 0 )
arc.SetResolution( 32 )
sphere = vtkSphereSource()
sphere.SetRadius( 0.05 )
sphere.SetCenter( 0, 0, 0 )
sphere.SetPhiResolution( 16 )
sphere.SetThetaResolution( 16 )

# Create mappers
mapper1 = vtkPolyDataMapper()
mapper1.SetInput( arc.GetOutput() )

mapper2 = vtkPolyDataMapper()
mapper2.SetInputConnection( sphere.GetOutputPort() )

# Create actors
actor1 = vtkActor()
actor1.SetMapper( mapper1 )
actor1.GetProperty().SetColor( 1., 0., 0. )
actor2 = vtkActor()
actor2.SetMapper( mapper2 )

# Create renderer
renderer = vtkRenderer()
renderer.AddViewProp( actor1 )
renderer.AddViewProp( actor2 )
renderer.SetBackground( .3, .4 ,.5 )

# Create render window
window = vtkRenderWindow()
window.AddRenderer( renderer )
window.SetSize( 500, 500 )

# Create interactor
interactor = vtkRenderWindowInteractor()
interactor.SetRenderWindow( window )

# Start interaction
window.Render()
interactor.Start()
                                                                 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-11-28 16:54 Philippe Pebay New Issue                                    
2011-11-28 16:54 Philippe Pebay Status                   backlog => tabled   
2011-11-28 16:54 Philippe Pebay Assigned To               => Berk Geveci     
2011-11-28 16:54 Philippe Pebay File Added: Incorrect180DegreesArc.png          
         
======================================================================




More information about the vtk-developers mailing list