Skip to content

Instantly share code, notes, and snippets.

@mherb
Last active March 23, 2020 08:23
Show Gist options
  • Save mherb/6b26627620d5baa2e4b1b794081016e7 to your computer and use it in GitHub Desktop.
Save mherb/6b26627620d5baa2e4b1b794081016e7 to your computer and use it in GitHub Desktop.
Visual Studio natvis for CGAL
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- Surface Mesh -->
<Type Name="CGAL::SM_Index&lt;*&gt;">
<DisplayString>{idx_}</DisplayString>
</Type>
<Type Name="CGAL::Properties::Property_array&lt;*&gt;">
<DisplayString>({name_}, {data_})</DisplayString>
<Expand>
<ExpandedItem>data_</ExpandedItem>
</Expand>
</Type>
<Type Name="CGAL::Properties::Property_container&lt;*, *&gt;">
<DisplayString>{parrays_}</DisplayString>
<Expand>
<ExpandedItem>parrays_</ExpandedItem>
</Expand>
</Type>
<!-- 2D Triangulation -->
<Type Name="CGAL::internal::CC_iterator&lt;*,*&gt;">
<DisplayString>{m_ptr.p}</DisplayString>
<Expand>
<ExpandedItem>m_ptr.p</ExpandedItem>
</Expand>
</Type>
<Type Name="CGAL::VectorC2&lt;*&gt;">
<DisplayString>[2] ({base[0]}, {base[1]})</DisplayString>
<Expand>
<Item Name="[x]">base[0]</Item>
<Item Name="[y]">base[1]</Item>
</Expand>
</Type>
<Type Name="CGAL::PointC2&lt;*&gt;">
<DisplayString>{base}</DisplayString>
<Expand>
<ExpandedItem>base</ExpandedItem>
</Expand>
</Type>
<Type Name="CGAL::Triangulation_vertex_base_2&lt;*&gt;">
<AlternativeType Name="CGAL::Triangulation_vertex_base_with_info_2&lt;*,*,*&gt;"/>
<DisplayString>{_p}</DisplayString>
<Expand>
<Item Name="vertex">_p</Item>
<Item Name="face">_f</Item>
<Item Name="info" Optional="true">_info</Item>
</Expand>
</Type>
<Type Name="CGAL::Triangulation_face_base_with_info_2&lt;*,*,*&gt;">
<AlternativeType Name="CGAL::Constrained_triangulation_face_base_2&lt;*,*&gt;"/>
<AlternativeType Name="CGAL::Triangulation_face_base_with_info_2&lt;*,*&gt;"/>
<DisplayString>{*V}</DisplayString>
<Expand>
<Item Name="vertices">V</Item>
<Item Name="neighbors">N</Item>
<Item Name="info" Optional="true">_info</Item>
<Item Name="constrained" Optional="true">C</Item>
</Expand>
</Type>
</AutoVisualizer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment