Handle(StepRepr_ProductDefinitionShape)::DownCast(theEnti);
Handle(StepBasic_ProductDefinition) aProdDef;
- if (aPDS.IsNull() == Standard_False) {
+ if (!aPDS.IsNull()) {
// Product Definition Shape ==> Product Definition
aProdDef = aPDS->Definition().ProductDefinition();
}
- if (aProdDef.IsNull() == Standard_False) {
+ if (!aProdDef.IsNull()) {
// Product Definition ==> Property Definition
const Interface_Graph &aGraph = theTP->Graph();
Interface_EntityIterator aSubs = aGraph.Sharings(aProdDef);
Handle(StepRepr_PropertyDefinition) aPropD =
Handle(StepRepr_PropertyDefinition)::DownCast(aSubs.Value());
- if (aPropD.IsNull() == Standard_False) {
+ if (!aPropD.IsNull()) {
// Property Definition ==> Representation.
Interface_EntityIterator aSubs1 = aGraph.Sharings(aPropD);
Handle(StepRepr_PropertyDefinitionRepresentation)::
DownCast(aSubs1.Value());
- if (aPDR.IsNull() == Standard_False) {
+ if (!aPDR.IsNull()) {
// Property Definition ==> Material Name.
Handle(StepRepr_Representation) aRepr = aPDR->UsedRepresentation();
- if (aRepr.IsNull() == Standard_False) {
+ if (!aRepr.IsNull()) {
Standard_Integer anIr;
for(anIr = 1; anIr <= aRepr->NbItems(); anIr++) {
Handle(StepRepr_DescriptiveRepresentationItem) aDRI =
Handle(StepRepr_DescriptiveRepresentationItem)::DownCast(aRI);
- if (aDRI.IsNull() == Standard_False) {
+ if (!aDRI.IsNull()) {
// Get shape from Product Definition
Handle(TCollection_HAsciiString) aMatName = aDRI->Name();
- if (aMatName.IsNull() == Standard_False) {
+ if (!aMatName.IsNull()) {
TCollection_ExtendedString
aMatNameExt (aMatName->ToCString());