public static vtkActor ReadPLY(string filename) { using (var reader = new Kitware.VTK.vtkPLYReader()) using (var mapper = new Kitware.VTK.vtkCompositePolyDataMapper()) { var actor = new Kitware.VTK.vtkActor(); reader.SetFileName(filename); mapper.SetInputConnection(reader.GetOutputPort()); actor.SetMapper(mapper); return(actor); } }
public new static vtkCompositePolyDataMapper New() { vtkCompositePolyDataMapper result = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkCompositePolyDataMapper.vtkCompositePolyDataMapper_New(ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; result = (vtkCompositePolyDataMapper)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); } return(result); }
public new static vtkCompositePolyDataMapper SafeDownCast(vtkObjectBase o) { vtkCompositePolyDataMapper vtkCompositePolyDataMapper = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkCompositePolyDataMapper.vtkCompositePolyDataMapper_SafeDownCast_09((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkCompositePolyDataMapper = (vtkCompositePolyDataMapper)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkCompositePolyDataMapper.Register(null); } } return(vtkCompositePolyDataMapper); }