@@ -0,0 +1,1651 @@
+/*%0A * Project Info:  http://jcae.sourceforge.net%0A * %0A * This program is free software; you can redistribute it and/or modify it under%0A * the terms of the GNU Lesser General Public License as published by the Free%0A * Software Foundation; either version 2.1 of the License, or (at your option)%0A * any later version.%0A *%0A * This program is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS%0A * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more%0A * details.%0A *%0A * You should have received a copy of the GNU Lesser General Public License%0A * along with this program; if not, write to the Free Software Foundation, Inc.,%0A * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.%0A *%0A * (C) Copyright 2008, by EADS France%0A */%0A%0Apackage org.jcae.opencascade.test;%0A%0Aimport org.jcae.opencascade.jni.STEPControl_Reader;%0Aimport org.jcae.opencascade.jni.TopAbs_ShapeEnum;%0Aimport org.jcae.opencascade.jni.TopExp_Explorer;%0Aimport org.jcae.opencascade.jni.TopoDS_Shape;%0A%0A/**%0A * Example which dump the label from the edges of a STEP file%0A * @author Jerome Robert%0A */%0Apublic class STEPLabel%0A%7B%0A%09public static void main(final String%5B%5D args)%0A%09%7B%0A%09%09STEPControl_Reader aReader = new STEPControl_Reader();%0A%09%09aReader.readFile(%22/tmp/Un_autre_essai.stp%22.getBytes());%0A%09%09aReader.nbRootsForTransfer();%0A%09%09aReader.transferRoots();%0A%09%09TopoDS_Shape s = aReader.oneShape();%0A%09%09TopExp_Explorer ex = new TopExp_Explorer(s, TopAbs_ShapeEnum.EDGE);%0A%09%09int i = 0;%0A%09%09while(ex.more())%0A%09%09%7B%0A%09%09%09i++;%0A%09%09%09System.out.println(i+ %22 %22 + aReader.getLabel(ex.current()));%0A%09%09%09ex.next();%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add an example to show how to dump the label from the edges of a STEP file