# Porting FreeCAD to VTK 9.0

**URL:** https://discourse.vtk.org/t/porting-freecad-to-vtk-9-0/4404
**Category:** Support
**Created:** [October 12, 2020, 8:13pm UTC](https://discourse.vtk.org/t/porting-freecad-to-vtk-9-0/4404 "2020-10-12T20:13:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Richard\_Shaw](https://discourse.vtk.org/user_avatar/discourse.vtk.org/richard_shaw/32/865_2.png) [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)
#### Post date: [October 12, 2020, 8:13pm UTC](https://discourse.vtk.org/t/porting-freecad-to-vtk-9-0/4404/1 "2020-10-12T20:13:05Z")

</div>

I’m only the Fedora packager for FreeCAD and amateur C++ programmer, but I am asking if we can get some help porting FreeCAD to VTK 9.0

I think we have it down to just a few problem areas. Please see the thread[1] in the FreeCAD forums for full context but I’ll try to paste the problems here.

1. 

```
#ifdef VTK_CELL_ARRAY_V2
//FIXME: vtk9
#else
  pts[0] = node->getVtkId();
#endif[/code]

```

1. 

```
#ifdef VTK_CELL_ARRAY_V2
      vtkIdType oldLoc; //FIXME: vtk9
#else
      vtkIdType oldLoc = this->Locations->GetValue(j);
#endif

```

1. 

```
#ifdef VTK_CELL_ARRAY_V2
//FIXME: vtk9
#else
          pts[i] = localClonedNodeIds[oldpt];
#endif

```

1. 

```
#ifdef VTK_CELL_ARRAY_V2
//FIXME: vtk9
  this->Links = SMDS_CellLinks::New();
  //this->Links->Allocate(this->GetNumberOfPoints());
  this->Links->Register(this);
  //this->Links->BuildLinks(this, this->Connectivity);
  this->Links->Delete();
#else
  this->Links = SMDS_CellLinks::New();
  this->Links->Allocate(this->GetNumberOfPoints());
  this->Links->Register(this);
  this->Links->BuildLinks(this, this->Connectivity);
  this->Links->Delete();
#endif

```

Thanks,  
Richard

[1] [https://forum.freecadweb.org/viewtopic.php?p=438817#p438817](https://forum.freecadweb.org/viewtopic.php?p=438817#p438817)
