Examining vtkPolyData in GDB

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Examining vtkPolyData in GDB

Ronald Römer
Hello.

I have a core dump and I want to find the coordinates of a specific
point. How could I do this? From this point I don't know where to find them:

(gdb) p *modPdA->Points->Data
$13 = (vtkDoubleArray) {
  <vtkAOSDataArrayTemplate<double>> = {
    <vtkGenericDataArray<vtkAOSDataArrayTemplate<double>, double>> = {
      <vtkDataArray> = {
        <vtkAbstractArray> = {
          <vtkObject> = {
            <vtkObjectBase> = {
              _vptr.vtkObjectBase = 0x7f3f002f20b8 <vtable for
vtkDoubleArray+16>,
              ReferenceCount = {
                <vtk::atomic::detail::IntegralType<int>> = {
                  c = {<No data fields>}
                },
                members of vtkAtomic<int>:
                Atomic = 1
              },
              WeakPointers = 0x0
            },
            members of vtkObject:
            Debug = false,
            MTime = {
              ModifiedTime = 15358794
            },
            SubjectHelper = 0x0
          },
          members of vtkAbstractArray:
          Size = 237615,
          MaxId = 130955,
          NumberOfComponents = 3,
          MaxDiscreteValues = 32,
          Name = 0x5605d333cc50 "Points",
          RebuildArray = false,
          Information = 0x0,
          ComponentNames = 0x0
        },
        members of vtkDataArray:
        LookupTable = 0x0,
        Range = {0, 0},
        FiniteRange = {0, 0},
        FiniteInformation = 0x0
      },
      members of vtkGenericDataArray<vtkAOSDataArrayTemplate<double>,
double>:
      LegacyTuple = std::vector of length 3, capacity 3 =
{-0.031233360353935744, -0.49638796694517223, 0.051219066321620647},
      LegacyValueRange = std::vector of length 0, capacity 0,
      Lookup = {
        AssociatedArray = 0x5605d64cdc40,
        SortedArray = 0x0,
        FirstValue = 0x0,
        SortedArraySize = 0
      }
    },
    members of vtkAOSDataArrayTemplate<double>:
    Buffer = 0x5605d4a11350
  }, <No data fields>}

--
Viele Grüße
Ronald Römer

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Examining vtkPolyData in GDB

Ronald Römer
Ok, I was too hasty.

It is

(gdb) p modPdA->Points->Data->Buffer->Pointer[1338*3]@3

Am I right?

On 09.12.18 00:07, Ronald Römer wrote:

> Hello.
>
> I have a core dump and I want to find the coordinates of a specific
> point. How could I do this? From this point I don't know where to find them:
>
> (gdb) p *modPdA->Points->Data
> $13 = (vtkDoubleArray) {
>   <vtkAOSDataArrayTemplate<double>> = {
>     <vtkGenericDataArray<vtkAOSDataArrayTemplate<double>, double>> = {
>       <vtkDataArray> = {
>         <vtkAbstractArray> = {
>           <vtkObject> = {
>             <vtkObjectBase> = {
>               _vptr.vtkObjectBase = 0x7f3f002f20b8 <vtable for
> vtkDoubleArray+16>,
>               ReferenceCount = {
>                 <vtk::atomic::detail::IntegralType<int>> = {
>                   c = {<No data fields>}
>                 },
>                 members of vtkAtomic<int>:
>                 Atomic = 1
>               },
>               WeakPointers = 0x0
>             },
>             members of vtkObject:
>             Debug = false,
>             MTime = {
>               ModifiedTime = 15358794
>             },
>             SubjectHelper = 0x0
>           },
>           members of vtkAbstractArray:
>           Size = 237615,
>           MaxId = 130955,
>           NumberOfComponents = 3,
>           MaxDiscreteValues = 32,
>           Name = 0x5605d333cc50 "Points",
>           RebuildArray = false,
>           Information = 0x0,
>           ComponentNames = 0x0
>         },
>         members of vtkDataArray:
>         LookupTable = 0x0,
>         Range = {0, 0},
>         FiniteRange = {0, 0},
>         FiniteInformation = 0x0
>       },
>       members of vtkGenericDataArray<vtkAOSDataArrayTemplate<double>,
> double>:
>       LegacyTuple = std::vector of length 3, capacity 3 =
> {-0.031233360353935744, -0.49638796694517223, 0.051219066321620647},
>       LegacyValueRange = std::vector of length 0, capacity 0,
>       Lookup = {
>         AssociatedArray = 0x5605d64cdc40,
>         SortedArray = 0x0,
>         FirstValue = 0x0,
>         SortedArraySize = 0
>       }
>     },
>     members of vtkAOSDataArrayTemplate<double>:
>     Buffer = 0x5605d4a11350
>   }, <No data fields>}
>
--
Viele Grüße
Ronald Römer

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Examining vtkPolyData in GDB

Sebastien Jourdain via vtk-developers
Yes, that appears correct to me.

On Sat, Dec 8, 2018 at 6:20 PM Ronald Römer <[hidden email]> wrote:
Ok, I was too hasty.

It is

(gdb) p modPdA->Points->Data->Buffer->Pointer[1338*3]@3

Am I right?

On 09.12.18 00:07, Ronald Römer wrote:
> Hello.
>
> I have a core dump and I want to find the coordinates of a specific
> point. How could I do this? From this point I don't know where to find them:
>
> (gdb) p *modPdA->Points->Data
> $13 = (vtkDoubleArray) {
>   <vtkAOSDataArrayTemplate<double>> = {
>     <vtkGenericDataArray<vtkAOSDataArrayTemplate<double>, double>> = {
>       <vtkDataArray> = {
>         <vtkAbstractArray> = {
>           <vtkObject> = {
>             <vtkObjectBase> = {
>               _vptr.vtkObjectBase = 0x7f3f002f20b8 <vtable for
> vtkDoubleArray+16>,
>               ReferenceCount = {
>                 <vtk::atomic::detail::IntegralType<int>> = {
>                   c = {<No data fields>}
>                 },
>                 members of vtkAtomic<int>:
>                 Atomic = 1
>               },
>               WeakPointers = 0x0
>             },
>             members of vtkObject:
>             Debug = false,
>             MTime = {
>               ModifiedTime = 15358794
>             },
>             SubjectHelper = 0x0
>           },
>           members of vtkAbstractArray:
>           Size = 237615,
>           MaxId = 130955,
>           NumberOfComponents = 3,
>           MaxDiscreteValues = 32,
>           Name = 0x5605d333cc50 "Points",
>           RebuildArray = false,
>           Information = 0x0,
>           ComponentNames = 0x0
>         },
>         members of vtkDataArray:
>         LookupTable = 0x0,
>         Range = {0, 0},
>         FiniteRange = {0, 0},
>         FiniteInformation = 0x0
>       },
>       members of vtkGenericDataArray<vtkAOSDataArrayTemplate<double>,
> double>:
>       LegacyTuple = std::vector of length 3, capacity 3 =
> {-0.031233360353935744, -0.49638796694517223, 0.051219066321620647},
>       LegacyValueRange = std::vector of length 0, capacity 0,
>       Lookup = {
>         AssociatedArray = 0x5605d64cdc40,
>         SortedArray = 0x0,
>         FirstValue = 0x0,
>         SortedArraySize = 0
>       }
>     },
>     members of vtkAOSDataArrayTemplate<double>:
>     Buffer = 0x5605d4a11350
>   }, <No data fields>}
>
--
Viele Grüße
Ronald Römer

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtk-developers



--
Cory Quammen
Staff R&D Engineer
Kitware, Inc.

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtk-developers