Commit de3c93a3 authored by Ken Martin's avatar Ken Martin

manually convert more NULL to nullptr

This topic catches another batch of NULL conversions that
clang did not handle for various reasons. It also includes
a number of changes to comments and strings where NULL was
used. It also catches some recent code changes where NULL
was used instead of nullptr.
parent 12506e9e
......@@ -449,7 +449,7 @@ public:
/**
* Return tree located at given index of hyper tree grid
* NB: This will return NULL if grid slot is empty.
* NB: This will return nullptr if grid slot is empty.
*/
vtkHyperTree* GetTree( vtkIdType );
......
......@@ -46,7 +46,7 @@ vtkAdaptiveDataSetSurfaceFilter::vtkAdaptiveDataSetSurfaceFilter()
// Default orientation is 0
this->Orientation = 0;
this->Renderer = NULL;
this->Renderer = nullptr;
this->LevelMax = -1;
......
......@@ -2968,7 +2968,7 @@ void vtkXdmf3DataSet::ParseFiniteElementFunction(vtkDataObject *dObject,
// Copy prepared structure to the dataset
dataSet->CopyStructure(dataSet_finite_element);
vtkFieldData *fieldData = NULL;
vtkFieldData *fieldData = nullptr;
// Insert values array to Cell/Point data
if (xmfAttribute->getElementDegree() == 0)
......
......@@ -304,7 +304,7 @@ public:
shared_ptr <XdmfAttribute> xmfAttribute,
vtkDataArray *array,
XdmfGrid *grid,
vtkXdmf3ArrayKeeper *keeper=NULL);
vtkXdmf3ArrayKeeper *keeper=nullptr);
};
#endif
......
......@@ -187,7 +187,7 @@ void save(Archiver& ar, const vtkVariantArray& c_array,
// Array name
vtkStdString name;
if(array.GetName()!=NULL) name=array.GetName();
if(array.GetName()!=nullptr) name=array.GetName();
ar & name;
// Array data
......
......@@ -168,31 +168,31 @@ int TestBoostAlgorithms(int argc, char* argv[])
// Test breadth first search
VTK_CREATE(vtkBoostBreadthFirstSearch, bfs);
bfs->SetInputData(g);
RenderGraph(ren, bfs.GetPointer(), 2, 0, "BFS", 0, 3, NULL, 0, 0);
RenderGraph(ren, bfs.GetPointer(), 2, 0, "BFS", 0, 3, nullptr, 0, 0);
// Test centrality
VTK_CREATE(vtkBoostBrandesCentrality, centrality);
centrality->SetInputData(g);
RenderGraph(ren, centrality.GetPointer(), 0, 2, "centrality", 0, 1, NULL, 0, 0);
RenderGraph(ren, centrality.GetPointer(), 0, 2, "centrality", 0, 1, nullptr, 0, 0);
// Test connected components
VTK_CREATE(vtkBoostConnectedComponents, comp);
comp->SetInputData(g);
RenderGraph(ren, comp.GetPointer(), 2, 2, "component", 0, 2, NULL, 0, 0);
RenderGraph(ren, comp.GetPointer(), 2, 2, "component", 0, 2, nullptr, 0, 0);
// Test breadth first search tree
VTK_CREATE(vtkBoostBreadthFirstSearchTree, bfsTree);
bfsTree->SetInputData(g);
VTK_CREATE(vtkBoostBreadthFirstSearch, bfs2);
bfs2->SetInputConnection(bfsTree->GetOutputPort());
RenderGraph(ren, bfs2.GetPointer(), 0, 4, "BFS", 0, 3, NULL, 0, 0);
RenderGraph(ren, bfs2.GetPointer(), 0, 4, "BFS", 0, 3, nullptr, 0, 0);
// Test Prim's MST
VTK_CREATE(vtkBoostPrimMinimumSpanningTree, prim);
prim->SetInputData(g2);
prim->SetOriginVertex(0);
prim->SetEdgeWeightArrayName("weight");
RenderGraph(ren, prim.GetPointer(), 2, 4, NULL, 0, 0, NULL, 0, 0);
RenderGraph(ren, prim.GetPointer(), 2, 4, nullptr, 0, 0, nullptr, 0, 0);
VTK_CREATE(vtkRenderWindowInteractor, iren);
VTK_CREATE(vtkRenderWindow, win);
......
......@@ -134,12 +134,12 @@ void vtkBoostBetweennessClustering::PrintSelf(ostream &os, vtkIndent indent)
(EdgeWeightArrayName) ?
os << indent << "EdgeWeightArrayName: " << this->EdgeWeightArrayName
<< endl :
os << indent << "EdgeWeightArrayName: NULL" << endl;
os << indent << "EdgeWeightArrayName: nullptr" << endl;
(EdgeCentralityArrayName) ?
os << indent << "EdgeCentralityArrayName: " << this->EdgeCentralityArrayName
<< endl :
os << indent << "EdgeCentralityArrayName: NULL" << endl;
os << indent << "EdgeCentralityArrayName: nullptr" << endl;
}
//-----------------------------------------------------------------------------
......
......@@ -47,14 +47,14 @@ vtkStandardNewMacro(vtkBoostBrandesCentrality);
vtkBoostBrandesCentrality::vtkBoostBrandesCentrality() :
UseEdgeWeightArray (false),
InvertEdgeWeightArray (false),
EdgeWeightArrayName (NULL)
EdgeWeightArrayName (nullptr)
{
}
//-----------------------------------------------------------------------------
vtkBoostBrandesCentrality::~vtkBoostBrandesCentrality()
{
this->SetEdgeWeightArrayName(0);
this->SetEdgeWeightArrayName(nullptr);
}
//-----------------------------------------------------------------------------
......@@ -68,7 +68,7 @@ void vtkBoostBrandesCentrality::PrintSelf(ostream& os, vtkIndent indent)
<< endl;
os << indent << "this->EdgeWeightArrayName: " <<
(this->EdgeWeightArrayName ? this->EdgeWeightArrayName : "NULL") << endl;
(this->EdgeWeightArrayName ? this->EdgeWeightArrayName : "nullptr") << endl;
}
//-----------------------------------------------------------------------------
......
......@@ -122,7 +122,7 @@ void vtkBoostBreadthFirstSearch::SetOriginSelection(vtkSelection* s)
void vtkBoostBreadthFirstSearch::SetOriginVertex(vtkIdType index)
{
this->OriginVertexIndex = index;
this->InputArrayName = NULL; // Reset any origin set by another method
this->InputArrayName = nullptr; // Reset any origin set by another method
this->Modified();
}
......@@ -211,7 +211,7 @@ int vtkBoostBreadthFirstSearch::RequestData(
if (this->OriginFromSelection)
{
vtkSelection* selection = vtkSelection::GetData(inputVector[1], 0);
if (selection == NULL)
if (selection == nullptr)
{
vtkErrorMacro("OriginFromSelection set but selection input undefined.");
return 0;
......@@ -235,7 +235,7 @@ int vtkBoostBreadthFirstSearch::RequestData(
vtkAbstractArray* abstract = input->GetVertexData()->GetAbstractArray(this->InputArrayName);
// Does the array exist at all?
if (abstract == NULL)
if (abstract == nullptr)
{
vtkErrorMacro("Could not find array named " << this->InputArrayName);
return 0;
......
......@@ -142,7 +142,7 @@ vtkBoostBreadthFirstSearchTree::vtkBoostBreadthFirstSearchTree()
vtkBoostBreadthFirstSearchTree::~vtkBoostBreadthFirstSearchTree()
{
this->SetArrayName(NULL);
this->SetArrayName(nullptr);
}
// Description:
......@@ -232,7 +232,7 @@ int vtkBoostBreadthFirstSearchTree::RequestData(
vtkAbstractArray* abstract = input->GetVertexData()->GetAbstractArray(this->ArrayName);
// Does the array exist at all?
if (abstract == NULL)
if (abstract == nullptr)
{
vtkErrorMacro("Could not find array named " << this->ArrayName);
return 0;
......
......@@ -96,7 +96,7 @@ int vtkBoostKruskalMinimumSpanningTree::RequestData(
vtkDataArray* edgeWeightArray = input->GetEdgeData()->GetArray(this->EdgeWeightArrayName);
// Does the edge-weight array exist at all?
if (edgeWeightArray == NULL)
if (edgeWeightArray == nullptr)
{
vtkErrorMacro("Could not find edge-weight array named "
<< this->EdgeWeightArrayName);
......
......@@ -161,7 +161,7 @@ int vtkBoostPrimMinimumSpanningTree::RequestData(
vtkAbstractArray* abstract = input->GetVertexData()->GetAbstractArray(this->ArrayName);
// Does the array exist at all?
if (abstract == NULL)
if (abstract == nullptr)
{
vtkErrorMacro("Could not find array named " << this->ArrayName);
return 0;
......@@ -179,7 +179,7 @@ int vtkBoostPrimMinimumSpanningTree::RequestData(
vtkDataArray* edgeWeightArray = input->GetEdgeData()->GetArray(this->EdgeWeightArrayName);
// Does the edge-weight array exist at all?
if (edgeWeightArray == NULL)
if (edgeWeightArray == nullptr)
{
vtkErrorMacro("Could not find edge-weight array named "
<< this->EdgeWeightArrayName);
......
......@@ -79,15 +79,15 @@ void vtkCollapseVerticesByArray::PrintSelf(ostream &os, vtkIndent indent)
os << indent << "AllowSelfLoops: " << this->AllowSelfLoops << endl;
os << indent << "VertexArray: " <<
(this->VertexArray ? this->VertexArray : "NULL") << endl;
(this->VertexArray ? this->VertexArray : "nullptr") << endl;
os << indent << "CountEdgesCollapsed: " << this->CountEdgesCollapsed << endl;
os << indent << "EdgesCollapsedArray: "
<< (this->EdgesCollapsedArray ? this->EdgesCollapsedArray : "NULL") << endl;
<< (this->EdgesCollapsedArray ? this->EdgesCollapsedArray : "nullptr") << endl;
os << indent << "CountVerticesCollapsed: " << this->CountVerticesCollapsed << endl;
os << indent << "VerticesCollapsedArray: "
<< (this->VerticesCollapsedArray ? this->VerticesCollapsedArray : "NULL") << endl;
<< (this->VerticesCollapsedArray ? this->VerticesCollapsedArray : "nullptr") << endl;
}
//------------------------------------------------------------------------------
......@@ -112,7 +112,7 @@ int vtkCollapseVerticesByArray::RequestData(vtkInformation* vtkNotUsed(request),
if(!inInfo)
{
vtkErrorMacro("Error: NULL input vtkInformation");
vtkErrorMacro("Error: nullptr input vtkInformation");
return 0;
}
......@@ -120,21 +120,21 @@ int vtkCollapseVerticesByArray::RequestData(vtkInformation* vtkNotUsed(request),
if(!inObj)
{
vtkErrorMacro(<< "Error: NULL vtkDataObject");
vtkErrorMacro(<< "Error: nullptr vtkDataObject");
return 0;
}
vtkInformation* outInfo = outputVector->GetInformationObject(0);
if(!outInfo)
{
vtkErrorMacro("Error: NULL output vtkInformation");
vtkErrorMacro("Error: nullptr output vtkInformation");
return 0;
}
vtkDataObject* outObj = outInfo->Get(vtkDataObject::DATA_OBJECT());
if(!outObj)
{
vtkErrorMacro("Error: NULL output vtkDataObject");
vtkErrorMacro("Error: nullptr output vtkDataObject");
return 0;
}
......@@ -265,7 +265,7 @@ vtkGraph* vtkCollapseVerticesByArray::Create(vtkGraph* inGraph)
{
if(!inVertexDataArraysAO[i]->GetName())
{
vtkErrorMacro("Error: Name on the array is NULL or not set.")
vtkErrorMacro("Error: Name on the array is nullptr or not set.")
return nullptr;
}
......@@ -324,7 +324,7 @@ vtkGraph* vtkCollapseVerticesByArray::Create(vtkGraph* inGraph)
{
if(!inEdgeDataArraysOI[i]->GetName())
{
vtkErrorMacro("Error: Name on the array is NULL or not set.")
vtkErrorMacro("Error: Name on the array is nullptr or not set.")
return nullptr;
}
......@@ -345,7 +345,7 @@ vtkGraph* vtkCollapseVerticesByArray::Create(vtkGraph* inGraph)
{
if(!inEdgeDataArraysAO[i]->GetName())
{
vtkErrorMacro("Error: Name on the array is NULL or not set.")
vtkErrorMacro("Error: Name on the array is nullptr or not set.")
return nullptr;
}
......
......@@ -83,7 +83,7 @@ void vtkTableToArray::AddColumn(const char* name)
{
if(!name)
{
vtkErrorMacro(<< "cannot add column with NULL name");
vtkErrorMacro(<< "cannot add column with nullptr name");
return;
}
......
......@@ -90,7 +90,7 @@ void vtkTableToSparseArray::AddCoordinateColumn(const char* name)
{
if(!name)
{
vtkErrorMacro(<< "cannot add coordinate column with NULL name");
vtkErrorMacro(<< "cannot add coordinate column with nullptr name");
return;
}
......@@ -102,7 +102,7 @@ void vtkTableToSparseArray::SetValueColumn(const char* name)
{
if(!name)
{
vtkErrorMacro(<< "cannot set value column with NULL name");
vtkErrorMacro(<< "cannot set value column with nullptr name");
return;
}
......
......@@ -42,40 +42,40 @@ int vtkThresholdGraph::RequestData(vtkInformation* vtkNotUsed(request),
{
if(!inputVector[0])
{
vtkErrorMacro("Error: NULL or invalid input vtkInformationVector.");
vtkErrorMacro("Error: nullptr or invalid input vtkInformationVector.");
return 1;
}
vtkInformation* inInfo = inputVector[0]->GetInformationObject(0);
if(!inInfo)
{
vtkErrorMacro("Error: NULL or invalid input vtkInformation.");
vtkErrorMacro("Error: nullptr or invalid input vtkInformation.");
return 1;
}
vtkDataObject* inDataObj = inInfo->Get(vtkDataObject::DATA_OBJECT());
if(!inDataObj)
{
vtkErrorMacro("Error: NULL or invalid input data object.");
vtkErrorMacro("Error: nullptr or invalid input data object.");
return 1;
}
if(!outputVector)
{
vtkErrorMacro("Error: NULL or invalid output vtkInformationVector.");
vtkErrorMacro("Error: nullptr or invalid output vtkInformationVector.");
return 1;
}
vtkInformation* outInfo = outputVector->GetInformationObject(0);
if(!outInfo)
{
vtkErrorMacro("Error: NULL of invalid output vtkInformation.")
vtkErrorMacro("Error: nullptr of invalid output vtkInformation.")
}
vtkDataObject* outDataObj = outInfo->Get(vtkDataObject::DATA_OBJECT());
if(!outDataObj)
{
vtkErrorMacro("Error: NULL or invalid output data object.");
vtkErrorMacro("Error: nullptr or invalid output data object.");
return 1;
}
......@@ -160,7 +160,7 @@ int vtkThresholdGraph::RequestData(vtkInformation* vtkNotUsed(request),
if(!output)
{
vtkErrorMacro("NULL or invalid output.");
vtkErrorMacro("nullptr or invalid output.");
return 1;
}
......
......@@ -63,7 +63,7 @@ void BuildTree(vtkIdType parent, vtkKdNode *parentVertex, vtkMutableDirectedGrap
double bounds[6];
parentVertex->GetBounds(bounds);
rectArray->InsertTuple(parent, bounds);
if (parentVertex->GetLeft() != NULL)
if (parentVertex->GetLeft() != nullptr)
{
vtkIdType curIndex = tree->AddChild(parent);
BuildTree(curIndex, parentVertex->GetLeft(), tree, rectArray);
......
......@@ -59,7 +59,7 @@ public:
* For rectangular layout, this is
* (xmin, xmax, ymin, ymax).
* The sizeArray may be NULL, or may contain the desired
* The sizeArray may be nullptr, or may contain the desired
* size of each vertex in the tree.
*/
virtual void Layout(vtkTree *inputTree, vtkDataArray *areaArray,
......
......@@ -313,7 +313,7 @@ void vtkAttributeClustering2DLayoutStrategy::Layout()
// Do I have a graph to layout?
if (this->Graph == nullptr)
{
vtkErrorMacro("Graph Layout called with Graph==NULL, call SetGraph(g) first");
vtkErrorMacro("Graph Layout called with Graph==nullptr, call SetGraph(g) first");
this->LayoutComplete = 1;
return;
}
......
......@@ -249,7 +249,7 @@ void vtkCirclePackLayout::GetBoundingCircle(vtkIdType id, double *cinfo)
if(!cinfo)
{
vtkErrorMacro(<< "cinfo is NULL");
vtkErrorMacro(<< "cinfo is nullptr");
return;
}
......
......@@ -57,7 +57,7 @@ public:
* bounds of each vertex as a tuple in a data array.
* (Xcenter, Ycenter, Radius).
* The sizeArray may be NULL, or may contain the desired
* The sizeArray may be nullptr, or may contain the desired
* size of each vertex in the tree.
*/
virtual void Layout(vtkTree *inputTree, vtkDataArray *areaArray,
......
......@@ -286,7 +286,7 @@ void vtkClustering2DLayoutStrategy::Layout()
// Do I have a graph to layout
if (this->Graph == nullptr)
{
vtkErrorMacro("Graph Layout called with Graph==NULL, call SetGraph(g) first");
vtkErrorMacro("Graph Layout called with Graph==nullptr, call SetGraph(g) first");
this->LayoutComplete = 1;
return;
}
......
......@@ -272,7 +272,7 @@ void vtkCommunity2DLayoutStrategy::Layout()
// Do I have a graph to layout
if (this->Graph == nullptr)
{
vtkErrorMacro("Graph Layout called with Graph==NULL, call SetGraph(g) first");
vtkErrorMacro("Graph Layout called with Graph==nullptr, call SetGraph(g) first");
this->LayoutComplete = 1;
return;
}
......
......@@ -271,7 +271,7 @@ void vtkConstrained2DLayoutStrategy::Layout()
// Do I have a graph to layout
if (this->Graph == nullptr)
{
vtkErrorMacro("Graph Layout called with Graph==NULL, call SetGraph(g) first");
vtkErrorMacro("Graph Layout called with Graph==nullptr, call SetGraph(g) first");
this->LayoutComplete = 1;
return;
}
......
......@@ -94,7 +94,7 @@ public:
//@{
/**
* Set the array to be used for sizing nodes.
* If this is set to an empty string or NULL (the default),
* If this is set to an empty string or nullptr (the default),
* then all leaf nodes (or all nodes, when SizeLeafNodesOnly is false)
* will be assigned a unit size.
*/
......@@ -136,8 +136,8 @@ protected:
* Create an array to hold radii, named appropriately (depends on \a NodeSizeArrayName)
* and initialized to either (a) -1.0 for each node or (b) a deep copy of an existing array.
* @param numVertices The number of vertices on the tree.
* @param initialValue The starting value of each node's radius. Only used when \a inputRadii is NULL.
* @param inputRadii Either NULL or the address of another array to be copied into the output array
* @param initialValue The starting value of each node's radius. Only used when \a inputRadii is nullptr.
* @param inputRadii Either nullptr or the address of another array to be copied into the output array
* @retval The array of node radii to be set on the output
*/
vtkDoubleArray* CreateRadii( vtkIdType numVertices, double initialValue, vtkDataArray* inputRadii );
......
......@@ -145,7 +145,7 @@ int vtkEdgeLayout::RequestData(vtkInformation *vtkNotUsed(request),
this->InternalGraph->DeepCopyEdgePoints(input);
// Give the layout strategy a pointer to the input. We set it to
// NULL first to force the layout algorithm to re-initialize
// nullptr first to force the layout algorithm to re-initialize
// itself. This is necessary in case the input is the same data
// object with a newer mtime.
this->LayoutStrategy->SetGraph(nullptr);
......
......@@ -268,7 +268,7 @@ void vtkFast2DLayoutStrategy::Layout()
// Do I have a graph to layout
if (this->Graph == nullptr)
{
vtkErrorMacro("Graph Layout called with Graph==NULL, call SetGraph(g) first");
vtkErrorMacro("Graph Layout called with Graph==nullptr, call SetGraph(g) first");
this->LayoutComplete = 1;
return;
}
......
......@@ -137,7 +137,7 @@ vtkGraphLayout::IsLayoutComplete()
}
// This is an error condition
vtkErrorMacro("IsLayoutComplete called with layout strategy==NULL");
vtkErrorMacro("IsLayoutComplete called with layout strategy==nullptr");
return 0;
}
......@@ -212,7 +212,7 @@ vtkGraphLayout::RequestData(vtkInformation *vtkNotUsed(request),
this->LastInputMTime = input->GetMTime();
// Give the layout strategy a pointer to the input. We set it to
// NULL first to force the layout algorithm to re-initialize
// nullptr first to force the layout algorithm to re-initialize
// itself. This is necessary in case the input is the same data
// object with a newer mtime.
this->LayoutStrategy->SetGraph(nullptr);
......
......@@ -81,7 +81,7 @@ void vtkKCoreLayout::PrintSelf(ostream& os, vtkIndent indent)
}
else
{
os << indent << "KCoreLabelArrayName : NULL" << endl;
os << indent << "KCoreLabelArrayName : nullptr" << endl;
}
os << indent << "Polar : " << this->Polar << endl;
......
......@@ -201,7 +201,7 @@ void vtkSimple2DLayoutStrategy::Layout()
// Do I have a graph to layout
if (this->Graph == nullptr)
{
vtkErrorMacro("Graph Layout called with Graph==NULL, call SetGraph(g) first");
vtkErrorMacro("Graph Layout called with Graph==nullptr, call SetGraph(g) first");
this->LayoutComplete = 1;
return;
}
......
......@@ -190,7 +190,7 @@ public:
* Get the current image property, which is set when StartWindowLevel
* is called immediately before StartWindowLevelEvent is generated.
* This is the image property of the topmost vtkImageSlice in the
* renderer or NULL if no image actors are present.
* renderer or nullptr if no image actors are present.
*/
vtkImageProperty *GetCurrentImageProperty() {
return this->CurrentImageProperty; }
......
......@@ -338,11 +338,11 @@ int TestSplineWidget( int argc, char *argv[] )
// renWin->Render();
// iren->SetEventPosition(200,200);
// iren->SetKeyCode('r');
// iren->InvokeEvent(vtkCommand::CharEvent,NULL);
// iren->InvokeEvent(vtkCommand::CharEvent,nullptr);
// ren1->ResetCameraClippingRange();
// renWin->Render();
// iren->SetKeyCode('t');
// iren->InvokeEvent(vtkCommand::CharEvent,NULL);
// iren->InvokeEvent(vtkCommand::CharEvent,nullptr);
// Playback recorded events
vtkSmartPointer<vtkInteractorEventRecorder> recorder =
......
......@@ -36,7 +36,7 @@ int vtkAngleRepresentation3DTest1(int , char * [] )
double *retScale = node1->GetTextActorScale();
if (retScale == nullptr)
{
std::cerr << "Error in setting text actor scale, used " << scale[0] << ", " << scale[1] << ", " << scale[2] << " but got back NULL" << std::endl;
std::cerr << "Error in setting text actor scale, used " << scale[0] << ", " << scale[1] << ", " << scale[2] << " but got back nullptr" << std::endl;
return EXIT_FAILURE;
}
else if (retScale[0] != scale[0] ||
......
......@@ -142,7 +142,7 @@ int vtkBiDimensionalRepresentation2DTest1(int , char * [] )
TEST_SET_GET_INT_RANGE(node1, ID, 1, 10000);
std::cout << "LabelText = " << (node1->GetLabelText() == nullptr ? "NULL" : node1->GetLabelText()) << std::endl;
std::cout << "LabelText = " << (node1->GetLabelText() == nullptr ? "nullptr" : node1->GetLabelText()) << std::endl;
double *labelPos = node1->GetLabelPosition();
if (labelPos)
{
......
......@@ -18,13 +18,13 @@ int vtkImplicitPlaneRepresentationTest1(int , char * [] )
vtkSmartPointer<vtkPolyData> pd;
node1->GetPolyData(pd);
if (pd == NULL)
if (pd == nullptr)
{
std::cout << "Polydata is null" << std::endl;
}
vtkSmartPointer<vtkPolyDataAlgorithm> pda = node1->GetPolyDataAlgorithm();
if (pda == NULL)
if (pda == nullptr)
{
std::cout << "Polydata algorithm is null" << std::endl;
}
......@@ -40,42 +40,42 @@ int vtkImplicitPlaneRepresentationTest1(int , char * [] )
vtkSmartPointer<vtkProperty> prop = node1->GetNormalProperty();
if (prop == NULL)
if (prop == nullptr)
{
std::cout << "Normal Property is NULL." << std::endl;
std::cout << "Normal Property is nullptr." << std::endl;
}
prop = node1->GetSelectedNormalProperty();
if (prop == NULL)
if (prop == nullptr)
{
std::cout << "Selected Normal Property is NULL." << std::endl;
std::cout << "Selected Normal Property is nullptr." << std::endl;
}
prop = node1->GetPlaneProperty();
if (prop == NULL)
if (prop == nullptr)