Han-Object is Roof

From Vectorlab
Jump to: navigation, search


Checks if an object is a roof face or a roof object. You need to load the routine H_SubType before this. By Orso B. Schmid


{ Orso *********************************************** }
{ checks if h is  roof face or roof obj }
FUNCTION H_IsRoof(h: HANDLE): BOOLEAN;
	VAR
		typ : INTEGER;
	BEGIN
		typ := H_SubType(h);
		H_IsRoof := ((typ=509) | (typ=83));
	END;