diff --git a/INSTALL b/INSTALL new file mode 100644 index 000000000..3adf46d88 --- /dev/null +++ b/INSTALL @@ -0,0 +1,4 @@ +This is the version 3.1.0 of GEOM +Compatible with : + - KERNEL 3.1.0 + - GUI 3.1.0 diff --git a/adm_local/unix/make_commence.in b/adm_local/unix/make_commence.in new file mode 100644 index 000000000..8054ab99b --- /dev/null +++ b/adm_local/unix/make_commence.in @@ -0,0 +1,257 @@ +# common directories to put headerfiles +inc_builddir=$(top_builddir)/include/salome + +@SET_MAKE@ +SHELL=/bin/sh + +# header missing + +HAVE_SSTREAM=@HAVE_SSTREAM@ + + +LIBS=@LIBS@ +LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker -L$(top_builddir)/lib/salome +# add libstdc++ to link c++ library with libtool ! +LDFLAGS+= -lstdc++ + +CP=@CP@ + +# CPP + +CPP=@CPP@ +CXXCPP=@CXXCPP@ +CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I. + +# C + +CC = @CC@ +CFLAGS = @CFLAGS@ +C_DEPEND_FLAG = @C_DEPEND_FLAG@ + +# C++ + +CXX = @CXX@ +CXXFLAGS = @CXXFLAGS@ +CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@ + +# BOOST Library + +BOOST_CPPFLAGS = @BOOST_CPPFLAGS@ + +# JAVA + +JAVA_INCLUDES = @JAVA_INCLUDES@ +JAVA_LIBS = @JAVA_LIBS@ +JAVA_LDPATH = @JAVA_LDPATH@ + +# PYTHON + +PYTHON = @PYTHON@ +PYTHONHOME = @PYTHONHOME@ +PYTHON_INCLUDES = @PYTHON_INCLUDES@ +PYTHON_LIBS = @PYTHON_LIBS@ +PYTHON_VERSION = @PYTHON_VERSION@ +PYTHON_SITE = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages +PYTHON_SITE_INSTALL = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages/salome +# QT + +QT_ROOT = @QT_ROOT@ +QT_INCLUDES = @QT_INCLUDES@ +QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT +QT_LIBS = @QT_LIBS@ +QT_MT_LIBS = @QT_MT_LIBS@ + +MOC = @MOC@ +UIC = @UIC@ + +MSG2QM = @MSG2QM@ + +#QWT + +QWT_INCLUDES=@QWT_INCLUDES@ +QWT_LIBS=@QWT_LIBS@ + +# SIP +SIP = @SIP@ +SIP_INCLUDES = @SIP_INCLUDES@ +SIP_LIBS = @SIP_LIBS@ + +# PYQT +PYQT_SIPS = @PYQT_SIPS@ +PYQT_LIBS = @PYQT_LIBS@ + +# openGL +OGL_INCLUDES=@OGL_INCLUDES@ +OGL_LIBS=@OGL_LIBS@ + +# VTK +VTK_INCLUDES=@VTK_INCLUDES@ +VTK_LIBS=@VTK_LIBS@ + +# HDF5 + +HDF5_INCLUDES=@HDF5_INCLUDES@ +HDF5_LIBS=@HDF5_LIBS@ +HDF5_MT_LIBS=@HDF5_MT_LIBS@ + +# OpenCasCade + +OCC_INCLUDES=@CAS_CPPFLAGS@ +OCC_CXXFLAGS=@CAS_CXXFLAGS@ + +#OCC_KERNEL_LIBS=@CAS_KERNEL@ +#OCC_OCAF_LIBS=@CAS_OCAF@ +#OCC_VIEWER_LIBS=@CAS_VIEWER@ +#OCC_MODELER_LIBS=@CAS_MODELER@ +#OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@ +#OCC_LIBS=@CAS_LDFLAGS@ +CAS_KERNEL=@CAS_KERNEL@ +CAS_MATH=@CAS_MATH@ +CAS_OCAF=@CAS_OCAF@ +CAS_OCAFVIS=@CAS_OCAFVIS@ +CAS_TKTopAlgo=@CAS_TKTopAlgo@ +CAS_VIEWER=@CAS_VIEWER@ +CAS_MODELER=@CAS_MODELER@ +CAS_DATAEXCHANGE=@CAS_DATAEXCHANGE@ +CAS_LDPATH=@CAS_LDPATH@ +# MPICH + +MPICH_INCLUDES=@MPICH_INCLUDES@ +MPICH_LIBS=@MPICH_LIBS@ + +# Swig C++ Python + +SWIG = @SWIG@ +SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I. + +# OMNIORB + +OMNIORB_ROOT = @OMNIORB_ROOT@ +OMNIORB_INCLUDES = @OMNIORB_INCLUDES@ +OMNIORB_LIBS = @OMNIORB_LIBS@ +OMNIORB_CXXFLAGS = @OMNIORB_CXXFLAGS@ + +OMNIORB_IDL = @OMNIORB_IDL@ +OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@ +OMNIORB_IDLPYFLAGS = @OMNIORB_IDLPYFLAGS@ -I$(top_srcdir)/idl -I$(KERNEL_ROOT_DIR)/idl/salome + +OMNIORB_IDL_CLN_H = @OMNIORB_IDL_CLN_H@ +OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@ +OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@ + +OMNIORB_IDL_SRV_H = @OMNIORB_IDL_SRV_H@ +OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@ +OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@ + +# Default ORB + +CORBA_ROOT = @CORBA_ROOT@ +CORBA_INCLUDES = @CORBA_INCLUDES@ +CORBA_LIBS = @CORBA_LIBS@ +CORBA_CXXFLAGS = @CORBA_CXXFLAGS@ + +IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_srcdir)/idl -I$(KERNEL_ROOT_DIR)/idl/salome +IDLPYFLAGS = @IDLPYFLAGS@ + +IDL = @IDL@ + +IDL_CLN_H = @IDL_CLN_H@ +IDL_CLN_CXX = @IDL_CLN_CXX@ +IDL_CLN_OBJ = @IDL_CLN_OBJ@ + +IDL_SRV_H = @IDL_SRV_H@ +IDL_SRV_CXX = @IDL_SRV_CXX@ +IDL_SRV_OBJ = @IDL_SRV_OBJ@ + +CPPFLAGS+= $(CORBA_INCLUDES) +CXXFLAGS+= $(CORBA_CXXFLAGS) + +# add corba libs when link salome application ! +#LDFLAGS+= $(CORBA_LIBS) +LIBS+=$(CORBA_LIBS) + +DOXYGEN = @DOXYGEN@ + +## Shared libraries +LT_STATIC_EXEC=@LT_STATIC_EXEC@ +DYNAMIC_DIRS=@DYNAMIC_DIRS@ +LT_LIB=libtool +LT=$(top_builddir)/libtool +LT_COMPILE=$(LT) --mode=compile $(CC) +LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir) +LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS) +LT_RUN=$(LT) --mode=execute +LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM) +LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA) +LT_UNINSTALL=$(LT) --mode=uninstall $(RM) + +INSTALL=@INSTALL@ +INSTALL_PROGRAM=@INSTALL_PROGRAM@ +INSTALL_DATA=@INSTALL_DATA@ + +# create a symbolic link (or a copie ?) +LN_S=@LN_S@ + +## Installation points +prefix=@prefix@ +exec_prefix=@exec_prefix@ +bindir=@bindir@/salome +libdir=@libdir@/salome +# warning : if user give this path in configure we could have salome/salome :-( +includedir=@includedir@/salome +datadir=@datadir@/salome +idldir=${prefix}/idl/salome +sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules +incmakedir=${prefix}/salome_adm/unix + +docdir=${prefix}/doc/salome + +# +# begin of package rules +# + +.PHONY: all lib bin inc resources data docs tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean + +.SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm + +all: + $(MAKE) inc + $(MAKE) depend_idl + $(MAKE) depend + $(MAKE) lib + $(MAKE) bin + $(MAKE) resources + +# +# add target to build administrative files +# + +Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in + cd $(top_builddir) ; ./config.status + +$(top_builddir)/config.status: $(top_srcdir)/configure + cd $(top_builddir) ; ./config.status --recheck + +# VPATH contain $(srcdir), so make configure is good in top_srcdir and we must add target configure otherwise :-) +ifneq ($(top_srcdir),$(srcdir)) +configure: $(top_srcdir)/configure +endif + +$(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4 + cd $(top_srcdir) ; autoconf + +$(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base + cd $(top_srcdir) && ./build_configure + + +ACLOCAL_SRC = \ +ac_cxx_bool.m4 check_corba.m4 check_vtk.m4 \ +ac_cxx_depend_flag.m4 check_hdf5.m4 enable_pthreads.m4 \ +ac_cxx_mutable.m4 check_mico.m4 libtool.m4 \ +ac_cxx_namespaces.m4 check_omniorb.m4 pyembed.m4 \ +ac_cxx_partial_specialization.m4 check_opengl.m4 python.m4 \ +ac_cxx_typename.m4 check_pthreads.m4 check_cas.m4 \ +ac_cc_warnings.m4 check_qt.m4 check_swig.m4 + +$(top_srcdir)/aclocal.m4: $(ACLOCAL_SRC:%=@KERNEL_ROOT_DIR@/salome_adm/unix/config_files/%) + cd $(top_srcdir) ; aclocal --acdir=adm_local/unix/config_files -I @KERNEL_ROOT_DIR@/salome_adm/unix/config_files diff --git a/bin/VERSION b/bin/VERSION new file mode 100755 index 000000000..2d918a5a9 --- /dev/null +++ b/bin/VERSION @@ -0,0 +1 @@ +THIS IS SALOME - GEOM VERSION: 3.1.0 diff --git a/build_configure b/build_configure new file mode 100755 index 000000000..6fdce3389 --- /dev/null +++ b/build_configure @@ -0,0 +1,215 @@ +#!/bin/bash + +# +# Tool for updating list of .in file for the SALOME project +# and regenerating configure script +# +# Author : Marc Tajchman - CEA +# Date : 10/10/2002 +# $Header$ +# + +ORIG_DIR=`pwd` +CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"` + +######################################################################## +# Test if the KERNEL_ROOT_DIR is set correctly +if test ! -d "${KERNEL_ROOT_DIR}"; then + echo "failed : KERNEL_ROOT_DIR variable is not correct !" + exit +fi + +# Test if the KERNEL_SRC is set correctly + +#if test ! -d "${KERNEL_SRC}"; then +# echo "failed : KERNEL_SRC variable is not correct !" +# exit +#fi +######################################################################## +# find_in - utility function +# +# usage : +# find_in directory filename +# +# Finds files following the *.in pattern, recursively in the +# directory (first argument). +# Results are appended into the file (second argument) +# +# Difference from the standard unix find is that files are tested +# before directories +# + +find_in() +{ + local i + local f=$2 + +# if the first argument is not a directory, returns + + if [ ! -d "$1" ] ; then + return + fi + +# dont look in the CVS directories + + case $1 in + */CVS) return ;; + */adm_local/*) return ;; + *) ;; + esac + +# for each regular file contained in the directory +# test if it's a .in file + + for i in "$1"/* + do + if [ -f "$i" ] ; then + case $i in + *.in) echo " "$i" \\" >> $f;; + *) ;; + esac + fi + done + +# for each subdirectory of the first argument, proceeds recursively + + for i in "$1"/* + do + if [ -d "$i" ] ; then + find_in "$i" "$f" + fi + done +} + + +####################################################################### +# Generate list of .in files (Makefile.in, config.h.in, etc) +# appending it in file configure.in + +cd ${CONF_DIR} +ABS_CONF_DIR=`pwd` + +# +# Common part of the configure.in file +# +chmod u+w configure.in.base +if ! \cp -f configure.in.base configure.in_tmp1 +then + echo + echo "error : can't create files in" ${CONF_DIR} + echo "aborting ..." + chmod u-w configure.in.base + exit +fi +chmod u-w configure.in.base + +if [ -e "${CONF_DIR}/salome_adm" ] ; then + \rm -f ${CONF_DIR}/salome_adm +fi + +# make a link allowing AC_OUTPUT to find the salome_adm/.../*.in files +echo "" >> configure.in_tmp1 +echo 'ln -fs ${KERNEL_ROOT_DIR}/salome_adm ${ROOT_SRCDIR}/.' >> configure.in_tmp1 + +echo "" >> configure.in_tmp1 +echo "AC_OUTPUT([ \\" >> configure.in_tmp1 + +# +# List of .in files in the adm/unix directory +# These files MUST be on top of AC_OUTPUT list so we +# put them "manually" +# + +echo " ./salome_adm/unix/SALOMEconfig.h \\" >> configure.in_tmp1 +echo " ./salome_adm/unix/F77config.h \\" >> configure.in_tmp1 +echo " ./salome_adm/unix/sstream \\" >> configure.in_tmp1 +echo " ./salome_adm/unix/depend \\" >> configure.in_tmp1 +echo " ./adm_local/unix/make_omniorb \\" >> configure.in_tmp1 +echo " ./salome_adm/unix/envScript \\" >> configure.in_tmp1 +echo " ./adm_local/unix/make_commence \\" >> configure.in_tmp1 +echo " ./salome_adm/unix/make_conclude \\" >> configure.in_tmp1 +echo " ./salome_adm/unix/make_module \\" >> configure.in_tmp1 + +\rm -f configure.in_tmp2 configure.in_tmp3 +touch configure.in_tmp2 +find_in . configure.in_tmp2 +sed -e '/^...salome_adm/d' configure.in_tmp2 > configure.in_tmp3 +sed -e '/^...adm_local.unix.make_omniorb/d' configure.in_tmp3 > configure.in_tmp2 +sed -e '/^...adm_local.unix.make_commence/d' configure.in_tmp2 > configure.in_tmp3 +sed -e '/configure.in/d' configure.in_tmp3 > configure.in_tmp2 +sed -e 's/.in / /' configure.in_tmp2 >> configure.in_tmp1 +#sed '/^.salome_adm/d' configure.in_tmp2 > configure.in_tmp3 +#sed '/configure.in/d' configure.in_tmp3 > configure.in_tmp2 +#sed 's/.in / /' configure.in_tmp2 >> configure.in_tmp1 + +echo "])" >> configure.in_tmp1 + +# delete the link created for AC_OUTPUT +echo "" >> configure.in_tmp1 +#echo 'rm -f ${ROOT_SRCDIR}/salome_adm' >> configure.in_tmp1 +\mv configure.in_tmp1 configure.in_new +\rm -f configure.in_tmp2 configure.in_tmp3 + + +######################################################################## +# Create new (or replace old) configure.in file +# Print a message if the file is write protected +# + +echo +if test ! -f configure.in +then + echo -n "Creating new file 'configure.in' ... " + if \mv configure.in_new configure.in >& /dev/null + then + echo "done" + else + echo "error, check your file permissions" + fi +else + echo -n "Updating 'configure.in' file ... " + if ! \cp configure.in configure.in_old >& /dev/null + then + echo + echo + echo "Can't backup previous configure.in" + echo -n "Continue (you will not be able to revert) - (Y/N) ? " + read R + case "x$R" in + xn*) exit;; + xN*) exit;; + esac + echo + echo -n " " + fi + if \cp configure.in_new configure.in >& /dev/null + then + echo "done" + else + echo + echo "error, can't update previous configure.in" + fi +fi + +######################################################################## +# Use autoconf to rebuild the configure script +# + +if test -f configure +then + echo -n "Updating 'configure' script ... " +else + echo -n "Creating 'configure' script ... " +fi + +aclocal --acdir=adm_local/unix/config_files -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files +if autoconf +then + echo "done" +else + echo "failed (check file permissions and/or user quotas ...)" +fi + +cd ${ORIG_DIR} + +echo diff --git a/doc/Makefile.in b/doc/Makefile.in new file mode 100644 index 000000000..7295ede75 --- /dev/null +++ b/doc/Makefile.in @@ -0,0 +1,40 @@ + +# -* Makefile *- +# +# Author : Patrick GOLDBRONN (CEA) +# Date : 30/11/2001 +# $Header$ +# +# source path +top_srcdir=@top_srcdir@ +top_builddir=.. +srcdir=@srcdir@ +VPATH=.:@srcdir@ + +SUBDIRS= salome + +@COMMENCE@ + +docs: + @@SETX@; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ + done +clean: + @@SETX@; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ + done + +distclean: clean + @@SETX@; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ + done + +install: + @@SETX@; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ + done + +uninstall: + @@SETX@; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ + done diff --git a/doc/salome/GEOM_index_v3.1.0.html b/doc/salome/GEOM_index_v3.1.0.html new file mode 100644 index 000000000..e4488ebbc --- /dev/null +++ b/doc/salome/GEOM_index_v3.1.0.html @@ -0,0 +1,95 @@ + + +
+ + + + +![]() |
+ + + + | +
+
To Add Point on Edge in the Main Menu select + Repair - > Add Point on Edge.
+ ++ +
This operation splits an edge in two in accordance + with the specified mode (by length or by parameter) and a value specifying + the position of the point on edge (for example val =0.5; mode = Length). + This operation is available in OCC Viewer + only.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command : + geompy.DivideEdge(Shape, EdgeID, + Value, IsByParameter), where Shape is a shape which contains an + edge to be divided, EdgeID is the ID of the edge to be divided, if it + = -1, then Shape is an edge, Value is a paramter on the edge or a length. + IsByParameter if it is True then Value is the edge parameter in the range + [0:1] otherwise it is a length of the edge in the range [0:1]
+ ++ +
Arguments: + Name + 1 Edge + 1 value setting the position of the point according to + one of the selected modes
+ ++ +
Dialog + Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/arc.htm b/doc/salome/gui/GEOM/arc.htm new file mode 100755 index 000000000..7d62f043c --- /dev/null +++ b/doc/salome/gui/GEOM/arc.htm @@ -0,0 +1,135 @@ + + + + + +
To create an Arc in the Main + Menu select New Entity - > + Basic - > Arc
+ ++ +
You can define + an Arc by by three + Points that lie on it. Point1 is the starting point of + the arc, Point2 is a middle point of the arc and Point3 is the ending + point of the arc.
+ +The + Result of the operation will be a + GEOM_Object (edge).
+ ++ +
TUI Command: + geompy.MakeArc(Point1, Point2, Point3)
+ +Arguments: + Name + 3 vertices.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Basic Geometric + Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/archimede.htm b/doc/salome/gui/GEOM/archimede.htm new file mode 100755 index 000000000..bc1c43e8b --- /dev/null +++ b/doc/salome/gui/GEOM/archimede.htm @@ -0,0 +1,135 @@ + + + + + +
To produce + an Archimede operation in the + Main Menu select Operations - > Archimede
+ ++ +
This + operation creates a plane corresponding to the modeled water-line of the + object plunged into the water (in Z direction).
+ ++ +
The + Result will be any GEOM_Object.
+ +TUI Command: + geompy.Archimede(Shape,Weight,WaterDensity,MeshingDeflection), + where Shape is a shape to put into the water, Weight is a weight of the + shape, WaterDensity is + density of water, MeshingDeflection is a deflection of the mesh, using + to compute the section.
+ +Arguments: + Name + 1 shape + + 3 values (Weight, Water Density & Meshing Deflection).
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of the use of Basic Operations. +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/basic_geometrical_objects.htm b/doc/salome/gui/GEOM/basic_geometrical_objects.htm new file mode 100755 index 000000000..6e38ea76f --- /dev/null +++ b/doc/salome/gui/GEOM/basic_geometrical_objects.htm @@ -0,0 +1,656 @@ + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = geompy.MakeVertex(0., + 0., 0.)
+ +p100 = geompy.MakeVertexWithRef(p0, + 100., 100., 100.)
+ +px = geompy.MakeVertex(100., + 0., 0.)
+ +py = geompy.MakeVertex(0., + 100., 0.)
+ +pz = geompy.MakeVertex(0., + 0., 100.)
+ ++ +
# create a curve and a vertex on it
+ +Arc = geompy.MakeArc(py, + pz, px)
+ +p_on_arc = geompy.MakeVertexOnCurve(Arc, + 0.25)
+ ++ +
# add objects in the study
+ +id_p0 = + geompy.addToStudy(p0, "Vertex + 0")
+ +id_p100 = + geompy.addToStudy(p100, "Vertex 100")
+ +id_px = + geompy.addToStudy(px, "Vertex + X")
+ +id_py = + geompy.addToStudy(py, "Vertex + Y")
+ +id_pz = + geompy.addToStudy(pz, "Vertex + Z")
+ +id_Arc = + geompy.addToStudy(Arc, "Arc")
+ +id_p_on_arc = geompy.addToStudy(p_on_arc, + "Vertex on Arc")
+ ++ +
# display vertices
+ +gg.createAndDisplayGO(id_p0)
+ +gg.createAndDisplayGO(id_p100)
+ +gg.createAndDisplayGO(id_Arc)
+ +gg.createAndDisplayGO(id_p_on_arc) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = geompy.MakeVertex(0., + 0., 0.)
+ +p100 = geompy.MakeVertexWithRef(p0, + 100., 100., 100.)
+ +px = geompy.MakeVertex(100., + 0. , 0. + )
+ +py = geompy.MakeVertex(0. + , 100., + 0. )
+ +pz = geompy.MakeVertex(0. + , 0. , + 100.)
+ ++ +
# create a vector on two points
+ +vxy = + geompy.MakeVector(px, py)
+ ++ +
# create a line with a point and a vector
+ +line1 = geompy.MakeLine(pz, + vxy)
+ ++ +
#create a line on two points
+ +line2 = geompy.MakeLineTwoPnt(p0, + p100)
+ ++ +
# add objects in the study
+ +id_vxy = + geompy.addToStudy(vxy, "Vector")
+ +id_line1 = + geompy.addToStudy(line1,"Line1")
+ +id_line2 = + geompy.addToStudy(line2,"Line2")
+ ++ +
# display lines
+ +gg.createAndDisplayGO(id_vxy)
+ +gg.createAndDisplayGO(id_line1)
+ +gg.createAndDisplayGO(id_line2) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = geompy.MakeVertex(0., + 0., 0.)
+ +px = geompy.MakeVertex(100., + 0. , 0. + )
+ +py = geompy.MakeVertex(0. + , 100., + 0. )
+ +pz = geompy.MakeVertex(0. + , 0. , + 100.)
+ ++ +
# create vector on two points
+ +vxy = + geompy.MakeVector(px, py)
+ ++ +
# create circle with point, vector and radius
+ +circle1 = geompy.MakeCircle(pz, + vxy, 30)
+ ++ +
#create circle on three points
+ +circle2 = geompy.MakeCircleThreePnt(p0, + px, py)
+ ++ +
# add objects in study
+ +id_vxy = + geompy.addToStudy(vxy, "Vector")
+ +id_circle1 = + geompy.addToStudy(circle1,"Circle1")
+ +id_circle2 = + geompy.addToStudy(circle2,"Circle2")
+ ++ +
# display circles
+ +gg.createAndDisplayGO(id_vxy)
+ +gg.createAndDisplayGO(id_circle1)
+ +gg.createAndDisplayGO(id_circle2) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = geompy.MakeVertex(0., + 0., 0.)
+ +p50 = geompy.MakeVertex(50., + 50., 50.)
+ ++ +
# create vector on two points
+ +vector = + geompy.MakeVector(p0, p50)
+ ++ +
# create ellipse with point, vector and radiuses
+ +ellipse = geompy.MakeEllipse(p50, + vector, 50, 25)
+ ++ +
# add objects in study
+ +id_vector = + geompy.addToStudy(vector, "Vector")
+ +id_ellipse = geompy.addToStudy(ellipse,"Ellipse")
+ ++ +
# display normal vector and ellipse
+ +gg.createAndDisplayGO(id_vector)
+ +gg.createAndDisplayGO(id_ellipse) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = geompy.MakeVertex(0. + , 0. , + 0. )
+ +p1 = geompy.MakeVertex(50. + , 100., 200.)
+ +p2 = geompy.MakeVertex(150., + 50., 100.)
+ +p3 = geompy.MakeVertex(100., + 150., 170.)
+ +p4 = geompy.MakeVertex(200., + 200., 150.)
+ ++ +
# create polyline on list of points
+ +polyline = geompy.MakePolyline([p0, + p1, p2, p3, p4])
+ ++ +
# create bezier on list of points
+ +bezier = geompy.MakeBezier([p0, + p1, p2, p3, p4])
+ ++ +
#create interpolation curve on list of points
+ +interpol = geompy.MakeInterpol([p0, + p1, p2, p3, p4])
+ ++ +
# add objects in study
+ +id_p0 = + geompy.addToStudy(p0, "Point1")
+ +id_p1 = + geompy.addToStudy(p1, "Point2")
+ +id_p2 = + geompy.addToStudy(p2, "Point3")
+ +id_p3 = + geompy.addToStudy(p3, "Point4")
+ +id_p4 = + geompy.addToStudy(p4, "Point5")
+ +id_polyline = geompy.addToStudy(polyline, + "Polyline")
+ +id_bezier = + geompy.addToStudy(bezier, "Bezier")
+ +id_interpol = geompy.addToStudy(interpol, + "Interpol")
+ ++ +
# display points and curves
+ +gg.createAndDisplayGO(id_p0)
+ +gg.createAndDisplayGO(id_p1)
+ +gg.createAndDisplayGO(id_p2)
+ +gg.createAndDisplayGO(id_p3)
+ +gg.createAndDisplayGO(id_p4)
+ +gg.createAndDisplayGO(id_polyline)
+ +gg.createAndDisplayGO(id_bezier)
+ +gg.createAndDisplayGO(id_interpol) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p1 = geompy.MakeVertex(10., + 50., 20.)
+ +p2 = geompy.MakeVertex(70., + 70., 70.)
+ ++ +
# create vector on two points
+ +vector1 = geompy.MakeVector(p1, + p2)
+ ++ +
# create vector with the given components
+ +vector2 = geompy.MakeVectorDXDYDZ(30, + 30, 100)
+ ++ +
# add objects in study
+ +id_p1 = + geompy.addToStudy(p1, "Point1")
+ +id_p2 = + geompy.addToStudy(p2, "Point2")
+ +id_vector1 = geompy.addToStudy(vector1,"Vector1")
+ +id_vector2 = geompy.addToStudy(vector2,"Vector2")
+ ++ +
# display points and vectors
+ +gg.createAndDisplayGO(id_p1)
+ +gg.createAndDisplayGO(id_p2)
+ +gg.createAndDisplayGO(id_vector1)
+ +gg.createAndDisplayGO(id_vector2) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p1 = geompy.MakeVertex( + 0., 0., + 100.)
+ +p2 = geompy.MakeVertex(100., + 0., + 0.)
+ +p3 = geompy.MakeVertex(200., + 200., 200.)
+ +p4 = geompy.MakeVertex(100., + 100., 0.)
+ +p5 = geompy.MakeVertex(0. + , 100., + 0.)
+ ++ +
# create vector with the given components
+ +vector = geompy.MakeVectorDXDYDZ(100., + 100., 100.)
+ ++ +
# create vector with two points
+ +vector_arc = geompy.MakeVector(p2, + p5)
+ ++ +
# create arc with three points
+ +arc = geompy.MakeArc(p2, + p4, p5)
+ ++ +
# create wire
+ +wire = geompy.MakeWire([vector_arc, + arc])
+ ++ +
# create face
+ +isPlanarWanted = 1
+ +face = geompy.MakeFace(wire, + isPlanarWanted)
+ +trimsize = 1000.
+ ++ +
# create plane with point, vector and trimsize
+ +plane1 = geompy.MakePlane(p1, + vector, trimsize)
+ ++ +
# create plane with three points and trimsize
+ +plane2 = geompy.MakePlaneThreePnt(p1, + p2, p3, trimsize)
+ ++ +
# create plane with given face
+ +plane3 = geompy.MakePlaneFace(face, + trimsize)
+ ++ +
# add objects in study
+ +id_face = + geompy.addToStudy(face, "Face")
+ +id_plane1 = geompy.addToStudy(plane1,"Plane1")
+ +id_plane2 = geompy.addToStudy(plane2,"Plane2")
+ +id_plane3 = geompy.addToStudy(plane3,"Plane3")
+ ++ +
# display points and vectors
+ +gg.createAndDisplayGO(id_face)
+ +gg.createAndDisplayGO(id_plane1)
+ +gg.createAndDisplayGO(id_plane2)
+ +gg.createAndDisplayGO(id_plane3)
+ +gg.setDisplayMode(id_plane1,1)
+ +gg.setTransparency(id_plane1,0.5)
+ +gg.setDisplayMode(id_plane2,1)
+ +gg.setTransparency(id_plane2,0.5)
+ +gg.setDisplayMode(id_plane3,1)
+ +gg.setTransparency(id_plane3,0.5) +
+ + + + diff --git a/doc/salome/gui/GEOM/basic_operations.htm b/doc/salome/gui/GEOM/basic_operations.htm new file mode 100755 index 000000000..afe039963 --- /dev/null +++ b/doc/salome/gui/GEOM/basic_operations.htm @@ -0,0 +1,242 @@ + + + + + +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertex and vector
+ +p0 = + geompy.MakeVertex( 0., + 0., + 0.)
+ +p200 = geompy.MakeVertex(200., + 200., 200.)
+ +pz = + geompy.MakeVertex( 0., + 0., + 100.)
+ ++ +
# create vector
+ +vxyz = geompy.MakeVectorDXDYDZ(100., + 100., 100.)
+ ++ +
# create box with two points
+ +box = geompy.MakeBoxTwoPnt(p0, + p200)
+ ++ +
# create plane
+ +trimsize = + 500.
+ +plane = geompy.MakePlane(pz, + vxyz, trimsize)
+ ++ +
# create partition objects
+ +partition1 = geompy.MakePartition([box], + [plane])
+ +partition2 = geompy.Partition([box], + [plane])
+ +partition3 = geompy.MakeHalfPartition(box, + plane)
+ ++ +
# add objects in study
+ +id_box = geompy.addToStudy(box,"Box")
+ +id_plane = geompy.addToStudy(plane,"Plane")
+ +id_partition1 = geompy.addToStudy(partition1,"MakePartition")
+ +id_partition2 = geompy.addToStudy(partition2,"Partition")
+ +id_partition3 = geompy.addToStudy(partition3,"MakeHalfPartition")
+ ++ +
# display partition objects and plane
+ +gg.createAndDisplayGO(id_box)
+ +gg.setDisplayMode(id_box,1)
+ +gg.createAndDisplayGO(id_plane)
+ +gg.setDisplayMode(id_plane,1)
+ +gg.createAndDisplayGO(id_partition1)
+ +gg.createAndDisplayGO(id_partition2)
+ +gg.createAndDisplayGO(id_partition3) +
+ +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertex and vector
+ +p0 = + geompy.MakeVertex( 0., + 0., + 0.)
+ +p200 = geompy.MakeVertex(200., + 200., 200.)
+ ++ +
# create box with two points
+ +box = geompy.MakeBoxTwoPnt(p0, + p200)
+ ++ +
# perform an Archimede operation on the given shape with given parameters
+ +weight = + 1000000.
+ +waterdensity = 1.
+ +meshingdeflection + = 0.01
+ +archimede = + geompy.Archimede(box, weight, waterdensity, meshingdeflection)
+ ++ +
# add objects in study
+ +id_box = geompy.addToStudy(box,"Box")
+ +id_archimede = geompy.addToStudy(archimede,"Archimede")
+ ++ +
# display box and result of Archimede operation
+ +gg.createAndDisplayGO(id_box)
+ +gg.setDisplayMode(id_box,1)
+ +gg.createAndDisplayGO(id_archimede)
+ +gg.setDisplayMode(id_archimede,1) +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/blocks_operations.htm b/doc/salome/gui/GEOM/blocks_operations.htm new file mode 100755 index 000000000..6cff43bd2 --- /dev/null +++ b/doc/salome/gui/GEOM/blocks_operations.htm @@ -0,0 +1,258 @@ + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p_25_25_50 = geompy.MakeVertex(25., + 25., 50.)
+ +p_50_25_25 = geompy.MakeVertex(50., + 25., 25.)
+ +p_25_50_25 = geompy.MakeVertex(25., + 50., 25.)
+ +box = geompy.MakeBoxDXDYDZ(50, + 50, 50)
+ +top_face = geompy.GetFaceNearPoint(box, + p_25_25_50)
+ +yz_face = geompy.GetFaceNearPoint(box, + p_50_25_25)
+ +xz_face = geompy.GetFaceNearPoint(box, + p_25_50_25)
+ +top_face_ind = geompy.LocalOp.GetSubShapeIndex(box, + top_face)
+ +yz_face_ind = geompy.LocalOp.GetSubShapeIndex(box, + yz_face)
+ +xz_face_ind = geompy.LocalOp.GetSubShapeIndex(box, + xz_face)
+ ++ +
# Multi-transformate block and glue the result
+ +box_tr1 = geompy.MakeMultiTransformation1D(box, + yz_face_ind, top_face_ind, 3)
+ +box_tr2 = geompy.MakeMultiTransformation2D(box, + xz_face_ind, yz_face_ind, 3, top_face_ind, 0, 2)
+ ++ +
# add objects in study
+ +id_box = geompy.addToStudy(box, + "Box")
+ +id_box_tr1 = geompy.addToStudy(box_tr1, + "Multi-transformed Block 1D")
+ +id_box_tr2 = geompy.addToStudy(box_tr2, + "Multi-transformed Block 2D")
+ ++ +
# display results
+ +gg.createAndDisplayGO(id_box)
+ +gg.setDisplayMode(id_box,1)
+ +gg.createAndDisplayGO(id_box_tr1)
+ +gg.createAndDisplayGO(id_box_tr2) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create box and sphere
+ +box = geompy.MakeBoxDXDYDZ(200, + 200, 200)
+ +sphere = geompy.MakeSphereR(100)
+ ++ +
# make compound
+ +compound = geompy.MakeCompound([box, + sphere])
+ ++ +
# get all the blocks, contained in the given compound
+ +make_block_explode + = geompy.MakeBlockExplode(compound, 1, 1)
+ ++ +
# add objects in study
+ +id_compound = geompy.addToStudy(compound, + "Compound")
+ +id_make_block_explode + = geompy.addToStudy(make_block_explode[0], "MakeBlockExplode")
+ ++ +
# display results
+ +gg.createAndDisplayGO(id_compound)
+ +gg.createAndDisplayGO(id_make_block_explode)
+ +gg.setDisplayMode(id_make_block_explode,1) +
+ ++ +
import geompy
+ +import salome
+ ++ +
# create box and sphere
+ +box = geompy.MakeBoxDXDYDZ(200, + 200, 200)
+ ++ +
# check and improve
+ +check_box = geompy.CheckAndImprove(box)
+ ++ +
# build all possible propagation groups
+ +listChains = geompy.Propagate(check_box)
+ ++ +
# add objects in study
+ +geompy.addToStudy(check_box, + "Box")
+ +for chain in listChains:
+ +geompy.addToStudyInFather(check_box, + chain, "propagation chain")
+ +salome.sg.updateObjBrowser(1) +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/boolean_operations.htm b/doc/salome/gui/GEOM/boolean_operations.htm new file mode 100755 index 000000000..86dc17fa8 --- /dev/null +++ b/doc/salome/gui/GEOM/boolean_operations.htm @@ -0,0 +1,348 @@ + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertex and vector
+ +p1 = geompy.MakeVertex(25, + 55, 0)
+ +p2 = geompy.MakeVertex( + 0, 0, 0)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create cylinder
+ +height = 35
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# create sphere
+ +sphere = geompy.MakeSphereR(40)
+ ++ +
# make fuse
+ +fuse = geompy.MakeFuse(cylinder, + sphere)
+ ++ +
# add objects in study
+ +id_cylinder = geompy.addToStudy(cylinder, + "Cylinder")
+ +id_sphere = geompy.addToStudy(sphere, + "Sphere")
+ +id_fuse = geompy.addToStudy(fuse, + "Fuse")
+ ++ +
# display results
+ +gg.createAndDisplayGO(id_cylinder)
+ +gg.setDisplayMode(id_cylinder,1)
+ +gg.createAndDisplayGO(id_sphere)
+ +gg.setDisplayMode(id_sphere,1)
+ +gg.createAndDisplayGO(id_fuse)
+ +gg.setDisplayMode(id_fuse,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertex and vector
+ +p1 = geompy.MakeVertex(25, + 55, 0)
+ +p2 = geompy.MakeVertex( + 0, 0, 0)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create cylinder
+ +height = 35
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# create sphere
+ +sphere = geompy.MakeSphereR(40)
+ ++ +
# make common
+ +common = geompy.MakeCommon(cylinder, + sphere)
+ ++ +
# add objects in study
+ +id_common = geompy.addToStudy(common, + "Common")
+ ++ +
# display results
+ +gg.createAndDisplayGO(id_common)
+ +gg.setDisplayMode(id_common,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertex and vector
+ +p1 = geompy.MakeVertex(25, + 55, 0)
+ +p2 = geompy.MakeVertex( + 0, 0, 0)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create cylinder
+ +height = 35
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# create sphere
+ +sphere = geompy.MakeSphereR(40)
+ ++ +
# make cut
+ +cut = geompy.MakeCut(cylinder, + sphere)
+ ++ +
# add objects in study
+ +id_cut = geompy.addToStudy(cut, + "Cut")
+ ++ +
# display results
+ +gg.createAndDisplayGO(id_cut)
+ +gg.setDisplayMode(id_cut,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertex and vector
+ +p1 = geompy.MakeVertex(25, + 55, 0)
+ +p2 = geompy.MakeVertex( + 0, 0, 0)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create cylinder
+ +height = 35
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# create sphere
+ +sphere = geompy.MakeSphereR(40)
+ ++ +
# make section
+ +section = geompy.MakeSection(cylinder, + sphere)
+ ++ +
# add objects in study
+ +id_section = geompy.addToStudy(section, + "Section")
+ ++ +
# display results
+ +gg.createAndDisplayGO(id_section)
+ +gg.setDisplayMode(id_section,1) +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/box.htm b/doc/salome/gui/GEOM/box.htm new file mode 100755 index 000000000..74feb2e36 --- /dev/null +++ b/doc/salome/gui/GEOM/box.htm @@ -0,0 +1,172 @@ + + + + + +
To create a Box + in the Main Menu select New Entity - > Primitives - > Box
+ ++ +
There are 2 algorithms for creation of a Box. +
+ +The + Result of each operation will be a + GEOM_Object (SOLID).
+ ++ +
Firstly, you can define a Box + by two specified Vertices (its + opposite corners), and with edges, parallel to the coordinate axes.
+ +TUI Command + : geompy.MakeBoxTwoPnt(Point1, + Point2)
+ +Arguments: Name + + 2 vertices (opposite corners of the box).
+ ++ +
+ +
Secondly, + you can define a Box by specified dimensions along the coordinate + axes and with edges, parallel to them. The + center of the box will be at point (DX/2, DY/2, DZ/2).
+ +TUI Command + : geompy.MakeBoxDXDYDZ(DX, + DY, DZ)
+ +Arguments: Name + + 3 values (dimensions at origin).
+ ++ +
NB! The is + a third way to create a Box, which is currently accessible only via TUI commands.
+ +You + can define a Box by the coordinates + of two Vertices (in this way + you don't need to create them in advance).
+ +TUI Command: + geompy.MakeBox(x1,y1,z1,x2,y2,z2) +
+ +Arguments: Name + X, + Y and Z coordinates of both points.
+ ++ +
Example:
+ ++ +
Our TUI Scripts + provide you with useful examples of creation of Primitives. +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/building_by_blocks.htm b/doc/salome/gui/GEOM/building_by_blocks.htm new file mode 100755 index 000000000..246c6f436 --- /dev/null +++ b/doc/salome/gui/GEOM/building_by_blocks.htm @@ -0,0 +1,330 @@ + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p1 = geompy.MakeVertex( + 0., 0., + 0.)
+ +p2 = geompy.MakeVertex(150., + 30., 0.)
+ +p3 = geompy.MakeVertex( + 0., 120., + 50.)
+ +p4 = geompy.MakeVertex( + 0., 40., + 70.)
+ ++ +
# create edges
+ +edge1 = geompy.MakeEdge(p1, + p2)
+ +edge2 = geompy.MakeEdge(p2, + p3)
+ +edge3 = geompy.MakeEdge(p3, + p4)
+ +edge4 = geompy.MakeEdge(p4, + p1)
+ ++ +
# create quadrangle face from four edges
+ +qface1 = geompy.MakeQuad(edge1, + edge2, edge3, edge4)
+ ++ +
# create quadrangle face on two edges
+ +qface2 = geompy.MakeQuad2Edges(edge1, + edge3)
+ ++ +
# create quadrangle with specified corners
+ +qface3 = geompy.MakeQuad4Vertices(p1, + p2, p3, p4)
+ ++ +
# add objects in study
+ +id_p1 = geompy.addToStudy(p1,"Point1")
+ +id_p2 = geompy.addToStudy(p2,"Point2")
+ +id_p3 = geompy.addToStudy(p3,"Point3")
+ +id_p4 = geompy.addToStudy(p4,"Point4")
+ +id_edge1 = geompy.addToStudy(edge1,"Edge1")
+ +id_edge2 = geompy.addToStudy(edge2,"Edge2")
+ +id_edge3 = geompy.addToStudy(edge3,"Edge3")
+ +id_edge4 = geompy.addToStudy(edge4,"Edge4")
+ +id_qface1 = geompy.addToStudy(qface1,"Qface1")
+ +id_qface2 = geompy.addToStudy(qface2,"Qface2")
+ +id_qface3 = geompy.addToStudy(qface3,"Qface3")
+ ++ +
# display vertices, edges and quadrangle faces
+ +gg.createAndDisplayGO(id_p1)
+ +gg.createAndDisplayGO(id_p2)
+ +gg.createAndDisplayGO(id_p3)
+ +gg.createAndDisplayGO(id_p4)
+ +gg.createAndDisplayGO(id_edge1)
+ +gg.createAndDisplayGO(id_edge2)
+ +gg.createAndDisplayGO(id_edge3)
+ +gg.createAndDisplayGO(id_edge4)
+ +gg.createAndDisplayGO(id_qface1)
+ +gg.setDisplayMode(id_qface1,1)
+ +gg.createAndDisplayGO(id_qface2)
+ +gg.setDisplayMode(id_qface2,1)
+ +gg.createAndDisplayGO(id_qface3)
+ +gg.setDisplayMode(id_qface3,1) +
+ +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p1 = geompy.MakeVertex( + 0., 0., + 0.)
+ +p2 = geompy.MakeVertex(150., + 30., 0.)
+ +p3 = geompy.MakeVertex( + 0., 120., + 50.)
+ +p4 = geompy.MakeVertex( + 0., 40., + 70.)
+ +p5 = geompy.MakeVertex(100., + 20., 45.)
+ +p6 = geompy.MakeVertex( + 0., 70., + 40.)
+ +p7 = geompy.MakeVertex( + 70., 70., 70.)
+ +p8 = geompy.MakeVertex( + 70.,-15., 70.)
+ +p9 = geompy.MakeVertex( + 0., 0., + 40.)
+ +p10 = geompy.MakeVertex( + 0., 70., + 0.)
+ +p11 = geompy.MakeVertex( + 70., 70., 0.)
+ +p12 = geompy.MakeVertex( + 70., -15., 0.)
+ +p13 = geompy.MakeVertex( + 0., 0., + 0.)
+ ++ +
# create faces
+ +qface1 = geompy.MakeQuad4Vertices(p1, + p2, p3, p4)
+ +qface2 = geompy.MakeQuad4Vertices(p1, + p2, p5, p4)
+ +qface3 = geompy.MakeQuad4Vertices(p13, + p12, p11, p10)
+ +qface4 = geompy.MakeQuad4Vertices(p9, + p8, p7, p6)
+ +qface5 = geompy.MakeQuad4Vertices(p13, + p9, p6, p10)
+ +qface6 = geompy.MakeQuad4Vertices(p13, + p9, p8, p12)
+ +qface7 = geompy.MakeQuad4Vertices(p12, + p8, p7, p11)
+ +qface8 = geompy.MakeQuad4Vertices(p11, + p7, p6, p10)
+ ++ +
# create hexahedral solid between two given faces
+ +solid1 = geompy.MakeHexa2Faces(qface1, + qface2)
+ ++ +
# create hexahedral solids, bounded by the six given faces
+ +solid2 = geompy.MakeHexa(qface3, + qface4, qface5, qface6, qface7, qface8)
+ ++ +
# add objects in study
+ +id_solid1 = geompy.addToStudy(solid1,"Solid1")
+ +id_solid2 = geompy.addToStudy(solid2,"Solid2")
+ ++ +
# display solids
+ +gg.createAndDisplayGO(id_solid1)
+ +gg.setDisplayMode(id_solid1,1)
+ +gg.createAndDisplayGO(id_solid2)
+ +gg.setDisplayMode(id_solid2,1) +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/chamfer.htm b/doc/salome/gui/GEOM/chamfer.htm new file mode 100755 index 000000000..4ad8cfcbe --- /dev/null +++ b/doc/salome/gui/GEOM/chamfer.htm @@ -0,0 +1,192 @@ + + + + + +
To produce + a Fillet in the Main Menu select + Operations - > Transformation - > + Fillet
+ ++ +
This operation allows you to make chamfer + of the edges of a Shape.
+ +The Result will + be a GEOM_Object.
+ ++ +
To create + chamfer on all edges of the given shape, you need to define the Main Object to create a chamfer on and + the Dimension (radius) of the + chamfer.
+ +TUI Command: + geompy.MakeChamferAll(Shape, D) +
+ +Arguments: Name + + 1 SHAPE + 1 value (Chamfer dimension).
+ ++ +
+ +
To create chamfer on the specified edges of + the given shape, you + need to define the Main Object + to create a fillet on, select the necessary edges in the object browser + or in the viewer and define the Dimension + of the Chamfer.
+ +TUI Command: + geompy.MakeChamferEdge(Shape, D1, + D2, Face1, Face2), where Shape is a shape to create a chamfer on, + D1 is a chamfer size along Face1, D2 is a chamfer size along Face2, Face1 + and Face2 are indices of faces in Shape.
+ ++ +
+ +
To create chamfer on the specified faces of + the given shape, you + need to define the Main Object + to create a fillet on, select the necessary faces in the object browser + or in the viewer and define the Dimension + of the Chamfer.
+ +TUI Command: + geompy.MakeChamferFace(Shape, D1, + D2, ListOfFaceID), where Shape is a shape to create chamfer on, + D1 is a chamfer size along a face from ListOfFaceID, + D2 is a + chamfer size along two faces connected to the edge to which the chamfer + is applied, ListOfFaceID is a list of indices of faces in Shape.
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Transformation + Operations.
+ ++ +
+ +
+ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/changing_display_parameters.htm b/doc/salome/gui/GEOM/changing_display_parameters.htm new file mode 100755 index 000000000..c2ed2dffe --- /dev/null +++ b/doc/salome/gui/GEOM/changing_display_parameters.htm @@ -0,0 +1,176 @@ + + + + + +
import salome
+ +import geompy
+ +box = geompy.MakeBox(0,0,0, + 50,50,50)
+ ++ +
sphere = geompy.MakeSphere(50,50,50, + 30)
+ +fuse = geompy.MakeBoolean(box,sphere,3)
+ +fuse_id = geompy.addToStudy(fuse,"Fuse")
+ ++ +
gg = salome.ImportComponentGUI("GEOM")
+ +gg.createAndDisplayGO(fuse_id)
+ +gg.setDisplayMode(fuse_id,1)
+ +gg.setColor(fuse_id,218,165,31) +
+ ++ +
import + salome
+ +import geompy
+ +box = geompy.MakeBox(0,0,0, + 50,50,50)
+ ++ +
sphere = geompy.MakeSphere(50,50,50, + 30)
+ +fuse = geompy.MakeBoolean(box,sphere,3)
+ +fuse_id = geompy.addToStudy(fuse,"Fuse")
+ ++ +
gg = salome.ImportComponentGUI("GEOM")
+ +gg.createAndDisplayGO(fuse_id)
+ +gg.setDisplayMode(fuse_id,1) +
+ ++ +
import salome
+ +import geompy
+ ++ +
box = geompy.MakeBox(0,0,0, + 50,50,50)
+ +sphere = geompy.MakeSphere(50,50,50, + 30)
+ ++ +
fuse = geompy.MakeBoolean(box,sphere,3)
+ +fuse_id = geompy.addToStudy(fuse,"Fuse")
+ ++ +
gg = salome.ImportComponentGUI("GEOM")
+ +gg.createAndDisplayGO(fuse_id)
+ +gg.setDisplayMode(fuse_id,1)
+ +gg.setColor(fuse_id,218,165,31)
+ +gg.setTransparency(fuse_id,0.5) +
+ + + + diff --git a/doc/salome/gui/GEOM/changing_displaying_parameters.htm b/doc/salome/gui/GEOM/changing_displaying_parameters.htm new file mode 100755 index 000000000..42ab05be2 --- /dev/null +++ b/doc/salome/gui/GEOM/changing_displaying_parameters.htm @@ -0,0 +1,256 @@ + + + + + + In GEOM you can set different
+ displaying parameters for visualization of geometrical objects in the
+ viewer:
+ +
Isos (in OCC viewer only)
+ +
To set displaying parameters of a geometrical object:
+ ++ +
Right-click on this geometrical object in + the viewer and from the pop-up menu select Properties.
+ ++ +
+ + + +
+ +
Description: + Set the display mode of the selected shape.
+ ++ +
TUI + Command: gg.setDisplayMode(ID, Short)
+ ++ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: + Change the color of a shape.
+ ++ +
TUI Command: + gg.setColor(ID, Short, Short, Short)
+ ++ +
Example:
+ ++ +
+ +
+ +
+ + + +
+ +
Description: + Change the transparency (between 0 & 1) of a shape.
+ ++ +
TUI Command: + gg.setTransparency(ID, Double)
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Changes the number of isolines displayed within a shape.
+ ++ +
Arguments: + 2 values (number of isolines).
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of Changing Displaying Parameters. +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/check_free_boundaries.htm b/doc/salome/gui/GEOM/check_free_boundaries.htm new file mode 100755 index 000000000..d5da15b92 --- /dev/null +++ b/doc/salome/gui/GEOM/check_free_boundaries.htm @@ -0,0 +1,154 @@ + + + + + +
To Check Free Boundaries in the Main Menu + select Repair - > Check Free Boundaries.
+ ++ +
This operation detects wires and edges that + correspond to the shape's boundary, and highlights it
+ ++ +
Result: GEOM_Object. +
+ ++ +
TUI Command : (NoError, ClosedWires, OpenWires) = geompy.GetFreeBoundary(Shape), + where Shape is a shape to be checked, NoError is false if an error occurred + while checking free boundaries, ClosedWires is a list of closed free boundary + wires, OpenWires is a list of open free boundary wires.
+ ++ +
Arguments: + Shape
+ ++ +
Dialog + Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/check_free_faces.htm b/doc/salome/gui/GEOM/check_free_faces.htm new file mode 100755 index 000000000..68757732c --- /dev/null +++ b/doc/salome/gui/GEOM/check_free_faces.htm @@ -0,0 +1,148 @@ + + + + + +
To Check Free Faces in the Main Menu select + Repair - > Check Free Faces.
+ ++ +
This operation retrieves all free faces from + a given shape. A free face is a face not shared between two shells of + the shape.
+ ++ +
Result: GEOM_Object. + Returns a list of IDs of all free faces, contained in the shape.
+ +TUI Command : GetFreeFacesIDs(Shape), where + Shape is a shape to be checked.
+ +Arguments: + Shape
+ ++ +
+ +
+ +
Examples:
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/circle.htm b/doc/salome/gui/GEOM/circle.htm new file mode 100755 index 000000000..22ad198ca --- /dev/null +++ b/doc/salome/gui/GEOM/circle.htm @@ -0,0 +1,150 @@ + + + + + +
To create a Circle + in the Main Menu select New Entity - > Basic - > Circle
+ ++ +
There + are 2 algorithms to create a Circle in + the 3D space.
+ +The + Result of each operation will be a + GEOM_Object (edge).
+ ++ +
Firstly, + you can define a Circle by a Center Point, a + Vector giving the circle’s + normal and a Radius.
+ +TUI Command: + geompy.MakeCircle(Point, Vector, Radius)
+ +Arguments: + Name + 1 vertex (for the center) + + 1 edge (for the direction) + Radius.
+ ++ +
+ +
Secondly, + you can define a Circle by three + Points that lie on it.
+ +TUI + Command: geompy.MakeCircleThreePnt(Point1, + Point2, Point3)
+ +Arguments: + Name + 3 points which will form + the circle.
+ ++ +
+ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Basic + Geometric Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/close_contour.htm b/doc/salome/gui/GEOM/close_contour.htm new file mode 100755 index 000000000..3dd603fc4 --- /dev/null +++ b/doc/salome/gui/GEOM/close_contour.htm @@ -0,0 +1,149 @@ + + + + + +
To produce + a Close Contour operation in the + Main Menu select Repair - > Close + Contour.
+ ++ +
This operation closes an open contour and modifies + the underlying face (if needed) in accordance with user specified mode:
+ +By common vertex – a + vertex is created between the end points of the contour and its tolerance + is increased to a value of the gap between the ends of the contour;
By new edge – a new edge + is inserted between the end points of the contour.
This operation is available in OCC + Viewer only.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.CloseContour(Shape, Wires, + IsCommonVertex), where Shape is a shape to be processed, Wires + is a list of edges or wires ID’s which has to be closed within the shape + (if the list contains only one element = -1, the shape itself is considered + as a wire), IsCommonVertex + if this parameter is True a closure has to be done by creation of a common + vertex, otherwise an edge is added between the end vertices.
+ ++ +
Arguments: Name + 1 shape + contour (Wire, + or a set of Edges) + mode of closure (by vertex or by edge)
+ ++ +
Dialog Box:
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/common.htm b/doc/salome/gui/GEOM/common.htm new file mode 100755 index 000000000..02eab0666 --- /dev/null +++ b/doc/salome/gui/GEOM/common.htm @@ -0,0 +1,141 @@ + + + + + +
To produce + a Common in the Main Menu select + Operations - > Boolean - > Common
+ ++ +
This + operation cuts the common part of two shapes and transforms + it into an independent geometrical object.
+ ++ +
The + Result will be a GEOM_Object + (COMPOUND).
+ +TUI Command: + geompy.MakeCommon(s1, + s2)
+ +Arguments: + Name + 2 shapes.
+ ++ +
+ +
Example:
+ ++ +
Our TUI Scripts provide you with useful examples + of the use of Boolean Operations. +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/complex_objects.htm b/doc/salome/gui/GEOM/complex_objects.htm new file mode 100755 index 000000000..00e9e0437 --- /dev/null +++ b/doc/salome/gui/GEOM/complex_objects.htm @@ -0,0 +1,484 @@ + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertex and vector
+ +p1 = geompy.MakeVertex( + 0., + 0., + 0.)
+ +p2 = geompy.MakeVertex( + 100., 0., + 0.)
+ +p3 = geompy.MakeVertex( + 100., 100., 0.)
+ +p4 = geompy.MakeVertex( + 0., + 100., 0.)
+ +p5 = geompy.MakeVertex( + 0., + 0., + 60.)
+ +p6 = geompy.MakeVertex(-100., + 0., + 0.)
+ +p7 = geompy.MakeVertex(-100.,-100., + 0.)
+ +p8 = geompy.MakeVertex( + 0.,-100., + 0.)
+ ++ +
# create vector with the given components
+ +vector = geompy.MakeVectorDXDYDZ(50., + 50., 50.)
+ ++ +
#create vectors with two points
+ +vector1_arc1 = geompy.MakeVector(p1, + p2)
+ +vector2_arc1 = geompy.MakeVector(p1, + p4)
+ +vector1_arc2 = geompy.MakeVector(p1, + p6)
+ +vector2_arc2 = geompy.MakeVector(p1, + p8)
+ ++ +
# create arcs with three points
+ +arc1 = geompy.MakeArc(p2, + p3, p4)
+ +arc2 = geompy.MakeArc(p6, + p7, p8)
+ ++ +
# create wires
+ +wire1 = geompy.MakeWire([vector1_arc1, + arc1, vector2_arc1])
+ +wire2 = geompy.MakeWire([vector1_arc2, + arc2, vector2_arc2])
+ ++ +
# create faces
+ +isPlanarWanted = 1
+ +face1 = geompy.MakeFace(wire1, + isPlanarWanted)
+ +face2 = geompy.MakeFace(wire2, + isPlanarWanted)
+ ++ +
# create prisms
+ +prism1 = geompy.MakePrism(face2, + p1, p5)
+ +prism2 = geompy.MakePrismVecH(face1, + vector, 50)
+ ++ +
# add objects in study
+ +id_face1 = + geompy.addToStudy(face1,"Face1")
+ +id_face2 = + geompy.addToStudy(face2,"Face2")
+ +id_prism1 = geompy.addToStudy(prism1,"Prism1")
+ +id_prism2 = geompy.addToStudy(prism2,"Prism2")
+ ++ +
# display cylinders
+ +gg.createAndDisplayGO(id_face1)
+ +gg.setDisplayMode(id_face1,1)
+ +gg.createAndDisplayGO(id_face2)
+ +gg.setDisplayMode(id_face2,1)
+ +gg.createAndDisplayGO(id_prism1)
+ +gg.setDisplayMode(id_prism1,1)
+ +gg.createAndDisplayGO(id_prism2)
+ +gg.setDisplayMode(id_prism2,1) +
+ +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertex and vector
+ +p1 = geompy.MakeVertex( + 10., 10., + 10.)
+ +p2 = geompy.MakeVertex( + 15., 15., + 50.)
+ +p3 = geompy.MakeVertex( + 40., 40., + 0.)
+ ++ +
#create vectors with two points
+ +vector1 = geompy.MakeVector(p1, + p2)
+ +vector2 = geompy.MakeVector(p1, + p3)
+ ++ +
# create vector with the given components
+ +vector3 = geompy.MakeVectorDXDYDZ(-20., + -20., 100.)
+ ++ +
# create wire
+ +wire = geompy.MakeWire([vector1, + vector2])
+ ++ +
# create revolution
+ +revolution = geompy.MakeRevolution(wire, + vector3, 2.3)
+ ++ +
# add objects in study
+ +id_vector3 = + geompy.addToStudy(vector3,"Axis")
+ +id_wire = + geompy.addToStudy(wire,"Wire")
+ +id_revolution = geompy.addToStudy(revolution,"Revolution")
+ ++ +
# display vector, wire and revolution
+ +gg.createAndDisplayGO(id_vector3)
+ +gg.createAndDisplayGO(id_wire)
+ +gg.createAndDisplayGO(id_revolution)
+ +gg.setDisplayMode(id_revolution,1) +
+ +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ +mindeg = 2
+ +maxdeg = 5
+ +tol3d = + 0.0001
+ +tol2d = + 0.0001
+ +nbiter = 5
+ ++ +
# create vertex and vector
+ +p1 = geompy.MakeVertex( + -30., -30., + 50.)
+ +p2 = geompy.MakeVertex( + -60., -60., + 30.)
+ +p3 = geompy.MakeVertex( + -30., -30., + 10.)
+ ++ +
# create arc with three points
+ +arc = geompy.MakeArc(p1, + p2, p3)
+ +ShapeListCompound + = []
+ +i = 0
+ +while i <= 3 :
+ +S + = geompy.MakeTranslation(arc, i * 50., 0., 0.)
+ +ShapeListCompound.append(S)
+ +i + = i + 1
+ +compound = geompy.MakeCompound(ShapeListCompound)
+ ++ +
# create filling
+ +filling = geompy.MakeFilling(compound, + mindeg, maxdeg, tol3d, tol2d, nbiter)
+ ++ +
# add objects in study
+ +id_compound = geompy.addToStudy(compound,"Compound")
+ +id_filling = geompy.addToStudy(filling,"Filling")
+ ++ +
# display compound and filling
+ +gg.createAndDisplayGO(id_compound)
+ +gg.createAndDisplayGO(id_filling)
+ +gg.setDisplayMode(id_filling,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = + geompy.MakeVertex(0. , + 0. , 0. + )
+ +px = + geompy.MakeVertex(100., 0. , + 0. )
+ +py = + geompy.MakeVertex(0. , + 100., 0. )
+ +pz = + geompy.MakeVertex(0. , + 0. , 100.)
+ +pxyz = geompy.MakeVertex(100., + 100., 100.)
+ ++ +
# create vector on two points
+ +vxy = geompy.MakeVector(px, + py)
+ ++ +
# create arc with three points
+ +arc = geompy.MakeArc(py, + pz, px)
+ ++ +
# create wire
+ +wire = geompy.MakeWire([vxy, + arc])
+ ++ +
# create edge
+ +edge = geompy.MakeEdge(p0, + pxyz)
+ ++ +
# create pipe
+ +pipe = geompy.MakePipe(wire, + edge)
+ ++ +
# add objects in study
+ +id_wire = geompy.addToStudy(wire,"Wire")
+ +id_edge = geompy.addToStudy(edge,"Edge")
+ +id_pipe = geompy.addToStudy(pipe,"Pipe")
+ ++ +
# display wire, edge (path) and pipe
+ +gg.createAndDisplayGO(id_wire)
+ +gg.createAndDisplayGO(id_edge)
+ +gg.createAndDisplayGO(id_pipe)
+ +gg.setDisplayMode(id_pipe,1) +
+ + + + diff --git a/doc/salome/gui/GEOM/compound.htm b/doc/salome/gui/GEOM/compound.htm new file mode 100755 index 000000000..2649dacef --- /dev/null +++ b/doc/salome/gui/GEOM/compound.htm @@ -0,0 +1,133 @@ + + + + + +To create + a Compound in the Main Menu select + New Entity - > Build - > Compound.
+ ++ +
You can create a compound from a list of shells. +
+ +The + Result will be a GEOM_Object + (COMPOUND).
+ ++ +
TUI Command: + geompy.MakeCompound(ListOfShape)
+ +Arguments: + Name + List of shapes.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Advanced Geometric + Objects.
+ ++ +
+ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/cone.htm b/doc/salome/gui/GEOM/cone.htm new file mode 100755 index 000000000..08858fe3f --- /dev/null +++ b/doc/salome/gui/GEOM/cone.htm @@ -0,0 +1,169 @@ + + + + + +
To create a Cone + in the Main Menu select New Entity - > Primitives - > Cone
+ ++ +
There are two algorithms for creation of a Torus. +
+ +The + Result of each operation will be a + GEOM_Object (SOLID).
+ ++ +
Firstly, you can define a Cone + by the Base Point (the central + point of the cone base), the Axis, + the Height and the first and the + second Radiuses.
+ +TUI Command: geompy.MakeCone(Point, + Axis, Radius1, Radius2)
+ +Arguments: + Name + 1 vertex + + 1 vector (for direction) + 3 values (Radius of the base part, radius + of the upper part, height).
+ ++ +
Secondly, you can define a Cone + with the centre at the origin of coordinates by its Height + and Radiuses. The Axis + of the Cone will be collinear + to the OZ axis of the coordinate system.
+ +TUI Command: geompy.MakeConeR1R2H(Radius1, + Radius2, Height)
+ +Arguments: + Name + 3 values + (Radius of the base part, radius of the upper part, height).
+ +
+ +
Note: If both radiuses are non-zero, + the Cone will be truncated. If + the radiuses are equal, a Cylinder + will be created instead.
+ ++ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Primitives.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/curve.htm b/doc/salome/gui/GEOM/curve.htm new file mode 100755 index 000000000..fd55288e3 --- /dev/null +++ b/doc/salome/gui/GEOM/curve.htm @@ -0,0 +1,162 @@ + + + + + +
To create a Curve in the Main Menu select New + Entity - > Basic - > Curve
+ ++ +
There are three algorithms to create + a Curve in the 3D space. Each time you define it by + a list of Points through which the curve passes. The three Curve Construction menu choices correspond to the three possible + types of curves: Polyline, Besier or B-spline (Interpolated) curve.
+ +The Result of + each operation will be a GEOM_Object (edge).
+ ++ +
TUI Commands: +
+ +geompy.MakePolyline(ListOfShapes)
geompy.MakeBezier(ListOfShapes)
geompy.MakeInterpol(ListOfShapes)
ListOfShape is a list of points through which + the curve passes.
+ +Arguments: + Name + at least 2 points which will serve as nodes on the curve.
+ ++ +
+ +
Examples:
+ ++ +
Polyline + Bezier + B-Spline
+ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Basic + Geometric Objects.
+ ++ +
+ + + + diff --git a/doc/salome/gui/GEOM/cut.htm b/doc/salome/gui/GEOM/cut.htm new file mode 100755 index 000000000..cc5d74ed0 --- /dev/null +++ b/doc/salome/gui/GEOM/cut.htm @@ -0,0 +1,138 @@ + + + + + +
To produce + a Cut in the Main Menu select + Operations - > Boolean - > Cut
+ ++ +
This operation cuts a shape with another + one.
+ +The + Result will be a GEOM_Object + (COMPOUND).
+ +Arguments: + Name + 2 shapes.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
Our TUI Scripts provide you with useful examples + of the use of Boolean Operations. +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/cylinder.htm b/doc/salome/gui/GEOM/cylinder.htm new file mode 100755 index 000000000..087d2d73d --- /dev/null +++ b/doc/salome/gui/GEOM/cylinder.htm @@ -0,0 +1,160 @@ + + + + + +
To create a Cylinder + in the Main Menu select New Entity - > Primitives - > Cylinder
+ ++ +
There are 2 algorithms for creation of a Cylinder. +
+ +The + Result of each operation will be a + GEOM_Object (SOLID).
+ ++ +
Firstly, you can define a Cylinder + by the Base Point (the central + point of the cylinder base), the Vector + (the axis of the cylinder), and its dimensions: the Radius and the Height.
+ +TUI Command: geompy.MakeCylinder(Point, + Axis, Radius, Height),
+ +Arguments: + Name + + 1 vertex + 1 vector + 2 values (Dimensions: radius and height).
+ ++ +
Secondly, you can define a + Cylinder by the given radius + and the height at the + origin of coordinate system. The axis of the cylinder will be collinear + to the OZ axis of the coordinate system.
+ +TUI Command: geompy.MakeCylinderRH(Radius, + Height)
+ +Arguments: Name + + 2 values (Dimensions at origin: radius and height).
+ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Primitives.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/edge.htm b/doc/salome/gui/GEOM/edge.htm new file mode 100755 index 000000000..184e5ba47 --- /dev/null +++ b/doc/salome/gui/GEOM/edge.htm @@ -0,0 +1,130 @@ + + + + + +
To + create an Edge in the Main + Menu select New Entity - > + Build - > Edge
+ ++ +
You can create an Edge + from two points (Point1 and Point2), being the first and the last + vertices of the edge.
+ +The + Result will + be a GEOM_Object (EDGE).
+ +TUI Command: + geompy.MakeEdge(Vertex1, Vertex2), + where Vertex1 and Vertex2 are correspondingly the first and the last vertex + of the edge.
+ +Arguments: + Name + 2 vertices.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Advanced Geometric + Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/ellipse.htm b/doc/salome/gui/GEOM/ellipse.htm new file mode 100755 index 000000000..f8b34dad2 --- /dev/null +++ b/doc/salome/gui/GEOM/ellipse.htm @@ -0,0 +1,148 @@ + + + + + +
To create an Ellipse in the Main + Menu select New Entity - > + Basic - > Ellipse
+ ++ +
You + can define an Ellipse by its + Center Point, a Vector giving its normal, and its Major & + Minor Radiuses.
+ +The + Result of the operation will be a + GEOM_Object (edge).
+ ++ +
TUI Command: geompy.MakeEllipse(Point, Vector, RadiusMajor, + RadiusMinor),
+ +Arguments: + Name + 1 vertex (for the center) + 1 edge (for the direction) + 1 X Radius + + 1 Y Radius.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of creation of Basic + Geometric Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/explode.htm b/doc/salome/gui/GEOM/explode.htm new file mode 100755 index 000000000..46e1d3560 --- /dev/null +++ b/doc/salome/gui/GEOM/explode.htm @@ -0,0 +1,180 @@ + + + + + +
To Explode + an object into subshapes, in the main menu select New + Entity > Explode.
+ ++ +
To create a list of subshapes + (vertices, edges, wires etc.) of the given shape using the Explode + operation, you need to define the Main + Object, which will be exploded and + the Type of Subshapes you wish to obtain from it.
+ +The + Result of the operation will be a List + of GEOM_Objects (edges, faces, solids or compsolids).
+ ++ +
Using + TUI Commands you can perform this operation + in a variety of ways:
+ +geompy.SubShapeAll(Shape, + Type) explodes a Shape on subshapes of a given Type and returns + a List of sub-shapes.
geompy.SubShapeAllIDs(Shape, + Type) explodes + a Shape on subshapes of a given Type and returns a List of IDs of sub-shapes. +
geompy.SubShapeAllSorted(Shape, + Type) explodes + a shape on subshapes of a given type and sorts + them by coordinates of their gravity centers, returning a + list of sub-shapes.
geompy.SubShapeAllSortedIDs(Shape, + Type) explodes + a shape on subshapes of a given type and + sorts them by coordinates of their gravity centers, returning + a List of IDs of sub-shapes.
geompy.SubShape(Shape, Type, ListOfInd) + allows + to obtain a compound of sub-shapes of the + Shape, selected + by they indices in a list of all sub-shapes of the given Type. Each index + is in the range [1, Nb_Sub-Shapes_Of_Given_Type].
geompy.SubShapeSorted(Shape, + Type, ListOfInd) allows to obtain a compound of sub-shapes of the Shape, + selected by they indices in sorted list of all sub-shapes of the given + Type. Each index is in the range [1, Nb_Sub-Shapes_Of_Given_Type]
+ +
Arguments: + 1 SHAPE + 1 type of SubShape.
+ ++ +
+ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/explode_on_blocks.htm b/doc/salome/gui/GEOM/explode_on_blocks.htm new file mode 100755 index 000000000..7022e94bd --- /dev/null +++ b/doc/salome/gui/GEOM/explode_on_blocks.htm @@ -0,0 +1,163 @@ + + + + + +
To produce + an Explode on Blocks operation + in the Main Menu select Operations - + > Blocks - > Explode on Blocks.
+ ++ +
This operation + returns blocks of the given compound. The user may define the type blocks + to be extracted by setting the minimum and maximum number of faces in + the target block. By checking the corresponding box the user may also + interactively choose the blocks from a compound .
+ ++ +
The + Result will be a GEOM_Object.
+ ++ +
TUI Command: + geompy.MakeBlockExplode(Compound, + MinNbFaces, MaxNbFaces), where Compound is a compound to be exploded + into the blocks, MinNbFaces, MaxNbFaces are correspondingly the minimal + and the + maximal number of faces of the resulting blocks.
+ +Arguments: 1 compound + 1 integer (min. and max. number + of faces in the block to be extracted).
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
+ +
Our TUI + Scripts provide you with useful examples + of the use of Blocks + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/extrusion.htm b/doc/salome/gui/GEOM/extrusion.htm new file mode 100755 index 000000000..27efe7e60 --- /dev/null +++ b/doc/salome/gui/GEOM/extrusion.htm @@ -0,0 +1,169 @@ + + + + + +
To generate an Extrusion on an object in the Main Menu select New + Entity - > Generation - + > Extrusion
+ ++ +
To create an Extrusion (Prism) you should define + the Base Shape (a basis of the + extrusion), the Vector + (a normal of the extrusion) and the Height + of extrusion.
+ +The + Result of the operation will be a + GEOM_Object (edge, face, solid or compsolid).
+ +TUI + Command : geompy.MakePrismVecH(Base, + Vector, Height)
+ +Arguments: Name + 1 shape (vertex, + edge, wire, face or shell) serving as base object + 1 vector (for direction) + + 1 value (dimension).
+ ++ +
+ +
NB! The + is another way to create an Extrusion, which + is currently accessible only via TUI commands.
+ +You + can define the Extrusion by + the Base Shape and the Start and End Point + of the Vector (in + this way you don't need to create it in advance).
+ +TUI + Command: geompy.MakePrism(Base, + Point1, Point2)
+ ++ +
+ +
Examples:
+ ++ +
Base Shape Prisms
+ +
+ +
Our TUI Scripts + provide you with useful examples of creation of Complex + Geometric Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/face.htm b/doc/salome/gui/GEOM/face.htm new file mode 100755 index 000000000..0b8231d67 --- /dev/null +++ b/doc/salome/gui/GEOM/face.htm @@ -0,0 +1,151 @@ + + + + + +
To create + a Face in the Main Menu select + New Entity - > Build - > Face
+ ++ +
To + create a Face + you need to select a wire, whose elements will be connected so that the + surface of the resulting object was minimal. Check Try + to create a planar face to create + a planar face or nothing if it is impossible.
+ +The + Result will be a GEOM_Object + (FACE).
+ ++ +
TUI Command: + geompy.MakeFace(Wire, isPlanarWanted)
+ +Arguments: + Name + 1 wire.
+ ++ +
+ +
TUI commands + give you some advanced possibilities.
+ ++ +
geompy.MakeFaceWires(Wires, + isPlanarWanted) - Creates a face on the given wires set. The argument + is not a single wire, but a list of wires.
+ +geompy.MakeFaces(Wires, + isPlanarWanted) is a shortcut to MakeFaceWires(). +
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Advanced Geometric + Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/files/salome2_sp3_basicgui_functions.htm b/doc/salome/gui/GEOM/files/salome2_sp3_basicgui_functions.htm new file mode 100755 index 000000000..1630c691f --- /dev/null +++ b/doc/salome/gui/GEOM/files/salome2_sp3_basicgui_functions.htm @@ -0,0 +1,885 @@ + + + + + +
In GEOM you can create basic geometrical objects (1D
+ & 2D elements) such as:
+ +
+ +
To create basic geometrical objects:
+ ++ +
In the main menu select New + Entity > Basic.
+ ++ + + + + +
+ +
Description: + Creates a point.
+ ++ +
Result: GEOM_Object + (vertex).
+ ++ +
TUI Command : + geompy.MakeVertex(X, + Y, Z) -
+ +geompy.MakeVertexWithRef(Reference, + X, Y, Z)
+ +geompy.MakeVertexOnCurve(Edge, Parameter) +
+ ++ +
Arguments:
+ +1st + Constructor: Name + X, Y and Z coordinates of the point.
2nd + Constructor: Name + 1 reference point + 3 coordinates defining + the position of this point regarding the reference one
2nd + Constructor: Name + 1 edge + + 1 Parameter defining the position of the point on the given edge.
+ +
Dialog Box:
+ ++ +
+ |
+
+ |
+
+ |
+ +
+ +
+ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: + Creates a line.
+ ++ +
Result: GEOM_Object + (edge).
+ ++ +
TUI Command: + geompy.MakeLine(Point1, Point2), + where Point1 and Point2 are points through which + the line passes.
+ ++ +
Arguments: + Name + 2 vertices.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: + Creates a circle.
+ ++ +
Result: GEOM_Object + (edge).
+ ++ +
TUI Command: + geompy.MakeCircle(Point, Vector, Radius), + where Point defines the center of the circle, Vector gives the circle’s + normal and Radius is the circle’s radius.
+ ++ +
Arguments: +
+ +1st + Constructor: Name + 1 vertex (for the center) + 1 edge (for the direction) + + Radius.
2nd + Constructor: Name + 3 points which will form the circle.
+ +
+ +
+ +
Dialog Box:
+ ++ +
+ |
+
+ |
+ +
+ +
+ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Creates an ellipse.
+ ++ +
Result: GEOM_Object + (edge).
+ ++ +
TUI Command: geompy.MakeEllipse(Point, Vector, RadiusMajor, + RadiusMinor), where Point defines the center of the ellipse, Vector + gives the ellipse’s normal, RadiusMajor and RadiusMinor are + correspondingly a major and minor radiuses of the ellipse.
+ ++ +
Arguments: + Name + 1 vertex (for the center) + 1 edge (for the direction) + 1 X Radius + + 1 Y Radius.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: + Creates an arc.
+ ++ +
Result: GEOM_Object + (edge).
+ ++ +
TUI Command: + geompy.MakeArc(Point1, Point2, Point3), + where Point1 is the starting point of the arc, Point2 is a middle point + of the arc and Point3 is the ending point of the arc.
+ ++ +
Arguments: + Name + 3 vertices.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: + Creates a curve in 3D space.
+ ++ +
Result: + GEOM_Object (edge).
+ ++ +
TUI Command: +
+ +geompy.MakePolyline(ListOfShapes), + where ListOfShape is a list of points through which the curve passes .
geompy.MakeInterpol(ListOfShapes), + where ListOfShape is a list of points through which the curve passes .
geompy.MakeBezier(ListOfShapes), + where ListOfShape is a list of points through which the curve passes .
+ +
Arguments: + Name + at least 2 points which will serve as nodes on the curve.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
Polyline + Bezier + B-Spline
+ +
+ +
+ + + +
+ +
Description: + Creates a vector.
+ ++ +
Result: GEOM_Object + (edge).
+ ++ +
TUI Command: + geompy.MakeVector(Point1, Point2), + where Point1 is the first point of the vector and the Point2 is the last + point of the vector.
+ ++ +
Arguments :
+ +1st + Constructor : Name + 2 vertices.
2nd + Constructor : Name + 3 values (Coordinates of the 2nd vertex. The + first vertex is in the origin).
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Creates a plane.
+ ++ +
Result: GEOM_Object + (face).
+ ++ +
TUI Command: + geompy.MakePlane(Point, Vector, TrimSize), + where Point is a point through which the + plane passes, Vector gives a normal of the plane and TrimSize is a half + size of a side of quadrangle face, representing the plane.
+ ++ +
Arguments:
+ +1st + Constructor : Name + 1 vertex + 1 vector + + 1 value (to define the size of the plane).
2nd + Constructor : Name + 1 vertex + 3 points (for the direction) + 1 value + (to define the size of the plane).
3rd + Constructor : Name + 1 selection + 1 value (to define the size of + the plane).
+ +
Dialog Box:
+ ++ +
+ |
+
+ |
+
+ |
+ +
+ +
+ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: + Sets the working plane (and the camera position).
+ ++ +
Arguments: +
+ +Name + 1 selection (face + or planar face),
Name + 2 + vectors,
Name + XYZ coordinate + system
+ +
+ +
Dialog Box:
+ ++ +
+ |
+
+ |
+
+ |
+ +
+ +
+ +
+ +
+ + + +
+ +
Description: + The user + may manually enter values of X, Y, and Z coordinates of origin in the + corresponding fields of the dialog box, or select a point in the object + browser or 3D viewer, in this case coordinates of origin are automatically + filled in with the coordinates of the selected point.
+ +The user then specifies components of X and + Y axes direction.
+ +Preview of the new LCS (small trihedron located + and oriented according to parameters of LCS) is displayed in the 3D viewer + and updated as soon as the user modifies some parameter.
+ +Then the user presses «OK» or «Apply» button + to create an LCS at the location with the specified coordinates. The new + object is shown in the Object Browser and in 3D viewer.
+ ++ +
+ +
TUI command: + geompy.MakeMarker(OX, OY, OZ, XDX, XDY, + XDZ, YDX, YDY, YDZ), where OX, OY, OZ are coordinates of the origin + of LCS, XDX, XDY, XDZ is a vector of OX direction + of the LCS and YDX, YDY, YDZ is a a vector of OY direction of the LCS.
+ ++ +
+ +
Arguments: +
+ +1st + Constructor : Name + Coordinates of origin, X axis direction, Y axis + direction
2nd + Constructor : Name + reference object.
3rd + Constructor : Name + 1 point of origin + X axis direction, Y axis + direction.
+ +
.
+ ++ +
Dialog Box:
+ ++ +
+ |
+
+ |
+
+ |
+ +
Example:
+ ++ +
+ +
In GEOM for construction of more complex geometrical objects
+ (2D & 3D elements) you can use the following boolean operations:
+ +
+ +
There is a general TUI command covering + all these operations, which can be used alongside with separate commands + for each operation.
+ +geompy.MakeBoolean(Shape1, + Shape2, Operation), where Shape1 is the first argument and Shape2 + is the second argument of Boolean operation, Operation is a type of the + Boolean operation (1 – Common, 2 – Cut, 3 – Fuse, 4 – Section).
+ ++ +
Our TUI + Scripts provide you with useful examples of the use of Boolean + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/files/salome2_sp3_buildgui_functions.htm b/doc/salome/gui/GEOM/files/salome2_sp3_buildgui_functions.htm new file mode 100755 index 000000000..42c0ee8ea --- /dev/null +++ b/doc/salome/gui/GEOM/files/salome2_sp3_buildgui_functions.htm @@ -0,0 +1,458 @@ + + + + + +
In GEOM you can create basic and advanced geometrical objects
+ (2D & 3D elements) using the following building functions:
+ + + +
+ +
+ +
+ +
To use Explode:
+ ++ +
In the main menu select New + Entity > Explode.
+ ++ + + +
+ +
Description: + Returns a list of subshapes (vertices, edges, wires etc.) of the given + shape.
+ ++ +
Result : + List of GEOM_Objects.
+ ++ +
TUI Command: +
+ +geompy.SubShape(Shape, + ListOfID), where Shape is a shape whose subshape(s) is (are) retrieved, + ListOfID is a list of requested sub shapes IDs. To get a subshape ID use + method GetSubShapeID().
geompy.SubShapeAll(Shape, + TypeOfShape), where Shape is a shape to be exploded on sub shapes + of type TypeOfShape.
+ +
Arguments: + 1 SHAPE + 1 type of SubShape.
+ ++ +
Dialog Box:
+ ++ +
+ +
+ +
To use building functions:
+ ++ +
In the main menu select + New Entity > Build + submenu.
+ ++ + + +
+ +
Description: + Creates an edge.
+ ++ +
Result: GEOM_Object + (EDGE).
+ ++ +
TUI Command: + geompy.MakeEdge(Vertex1, Vertex2), + where Vertex1 and Vertex2 are correspondingly the first and the last vertex + of the edge.
+ ++ +
Arguments: + Name + 2 vertices.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Creates a wire.
+ ++ +
Result: GEOM_Object + (WIRE).
+ ++ +
TUI Command : + geompy.MakeWire(ListOfShape), + where ListOfShape is a list of edges and/or wires from which the wire + to be constructed.
+ ++ +
Arguments: + Name + List of connected wires or edges..
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Creates a face.
+ ++ +
Result: GEOM_Object + (FACE).
+ ++ +
TUI Command: + geompy.MakeFace(Wire, WantPlanarFace), + where Wire is a wire and if boolean parameter WantPlanarFace is planar + then only a planar face or no face is constructed.
+ ++ +
Arguments: + Name + 1 wire.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Creates a shell.
+ ++ +
Result: GEOM_Object + (SHELL).
+ ++ +
TUI Command: + geompy.MakeShell(ListOfShape), + where ListOfShape is a list of faces and (or) shells from which the shell + is constructed.
+ ++ +
Arguments: + Name + List of faces having connected edges.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Creates a solid - closed geometrical 3D element.
+ ++ +
Result: GEOM_Object + (SOLID).
+ ++ +
TUI Command: + geompy.MakeSolid(ListOfShape), + where ListOfShape is a list of shells from which the solid is constructed.
+ ++ +
Arguments: + Name + A closed shell or a list of shells.
+ ++ +
Dialog Box:
+ ++ +
+ +
+ + + +
+ +
Description: + Creates a compound.
+ ++ +
Result: GEOM_Object + (COMPOUND).
+ ++ +
TUI Command: + geompy.MakeCompound(ListOfShape), + where ListOfShape is a list of shapes from which the compound is constructed.
+ ++ +
Arguments: + Name + List of shapes.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/files/salome2_sp3_generationgui_functions.htm b/doc/salome/gui/GEOM/files/salome2_sp3_generationgui_functions.htm new file mode 100755 index 000000000..322971bfa --- /dev/null +++ b/doc/salome/gui/GEOM/files/salome2_sp3_generationgui_functions.htm @@ -0,0 +1,307 @@ + + + + + +
Generation operations in GEOM are used to create advanced
+ geometrical objects (3D elements). They are:
+ +
+ +
To use generation operations:
+ ++ +
In the main menu select New + Entity > Generation.
+ ++ +
Description: + Creates an extruded shape.
+ ++ +
Result: GEOM_Object + (edge, face, solid or compsolid).
+ ++ +
TUI Command : + geompy.MakePrism(baseShape, Vector, + Height), where baseShape is a basis of the prism, Vector is a normal + of the prism and Height is a height of the prism.
+ ++ +
Arguments: + Name + 1 shape (vertex, edge, wire, face or shell) serving as base object + + 1 vector (for direction) + 1 value (dimension).
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Creates an extruded shape by revolution.
+ ++ +
Result: GEOM_Object + (edge, face, solid or compsolid).
+ ++ +
TUI Command: + geompy.MakeRevolution(Shape, Axis, + Angle), where Shape is a shape to rotate, Axis is the axis of the + revolution and Angle is an angle by which Shape has to be rotated around + Axis.
+ ++ +
Arguments: + Name + 1 shape (vertex, edge, wire, face or shell) serving as base object + + 1 vector (for direction) + 1 value (angle).
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Creates a curving face using several curves.
+ ++ +
Result: GEOM_Object + (face).
+ ++ +
TUI Command: + geompy.MakeFilling(Shape, MinDegree, + MaxDegree, Tol2D, Tol3D, NbIter), where Shape is a shape to fill, + MinDegree and MaxDegree are correspondingly maximal and minimal degree, + Tol2D is a tolerance for 2D and Tol3D is a tolerance for 3D, NbIter is + a number of iterations.
+ ++ +
Arguments: + Name + 1 List of edges + 5 Parameters (Min. degree, Max. degree, Number + of iterations, 2D tolerance, 3D tolerance).
+ ++ +
Dialog Box:
+ ++ +
+ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Creates an extruded shape.
+ ++ +
Result: GEOM_Object + (edge, face, solid or compsolid).
+ ++ +
TUI Command: + geompy.MakePipe(baseShape, pathShape), + where baseShape is a shape to be extruded, pathShape is a path along which + baseShape is extruded.
+ ++ +
Arguments: + Name + 1 shape (vertex, edge, wire, face or shell) serving as base object + + 1 shape (edge, face or shell) for definition of the path.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + + diff --git a/doc/salome/gui/GEOM/files/salome2_sp3_geomtoolsgui_functions.htm b/doc/salome/gui/GEOM/files/salome2_sp3_geomtoolsgui_functions.htm new file mode 100755 index 000000000..9baefc0bc --- /dev/null +++ b/doc/salome/gui/GEOM/files/salome2_sp3_geomtoolsgui_functions.htm @@ -0,0 +1,145 @@ + + + + + +
In GEOM you can import
+ and export geometrical objects from\into BREP, IGES, STEP files.
To import geometrical objects from a BREP, IGES, STEP file:
+ ++ +
From the File + menu choose Import and + select the required format of the file for importation. Then you will + see a standard dialog box allowing to search for and choose *.brep, *.iges + or *.step file:
+ ++ +
+ +
Select the required file and click OK. You file will be imported into GEOM + and its contents (geometrical objects) will be displayed in the Object Browser.
+ ++ +
+ +
To export geometrical objects into a BREP, IGES, STEP file:
+ ++ +
Select the object you wish to export, then + from the File menu choose Export and select the required format + of the file for exportation. You will see a standard dialog box allowing + to enter the name and select the location for the file which will be exported:
+ ++ +
+ +
Click OK + to confirm your exportation.
+ ++ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/files/salome2_sp3_measuregui_functions.htm b/doc/salome/gui/GEOM/files/salome2_sp3_measuregui_functions.htm new file mode 100755 index 000000000..cedecfb90 --- /dev/null +++ b/doc/salome/gui/GEOM/files/salome2_sp3_measuregui_functions.htm @@ -0,0 +1,597 @@ + + + + + +
Measurement tools in GEOM are necessary for getting different
+ data concerning created or imported geometrical objects. They are:
+ +
+ +
Our TUI Scripts + show how to use Measurement Tools + with TUI + commands.
+ ++ +
To use measurement tools:
+ ++ +
In the main menu select Measures + submenu.
+ ++ +
+ + + +
+ +
Description: + Returns the coordinates of a point.
+ ++ +
Result: Point + coordinates (X, Y, Z) in 3D space in the form of Python Tuple.
+ ++ +
TUI command: + geompy.PointCoordinates(Point), + where Point is a point whose coordinates are inquired.
+ ++ +
+ +
Arguments: + 1 point.
+ ++ +
Dialog Box:
+ ++ +
+ +
+ + + +
+ +
Description: + Return the properties (Length, Surface & Volume) of a definite geometrical + object.
+ ++ +
Result: Display + Length, Surface & Volume in the form of Python Tuple.
+ ++ +
TUI command: + geompy.BasicProperties(Shape), + where Shape is a shape whose properties are inquired.
+ ++ +
Arguments: + 1 shape.
+ ++ +
Dialog Box:
+ ++ +
+ +
+ + + +
+ +
Description: + Creates a gravity center of a shape and returns its coordinates.
+ ++ +
Result: GEOM_Object + (vertex).
+ ++ +
TUI Command: + geompy.MakeCDG(Shape), where + Shape is the shape for which a center of gravity is computed.
+ ++ +
Arguments: + 1 shape.
+ ++ +
Dialog Box:
+ ++ +
+ +
+ +
Inertia
+
+ +
Description: + Returns the inertia axis of a geometrical object.
+ ++ +
Result: Display + the matrix and moments of inretia in the form of Python Tuple (I11, I12, + I13,
+ +I21, + I22, I23,
+ +I31, + I32, I33,
+ +Ix, + Iy, Iz).
+ ++ +
TUI command: + geompy.Inertia(Shape), where + Shape is a shape for which a matrix of inertia and moment of inertia are + returned.
+ ++ +
Arguments: + 1 shape.
+ ++ +
Dialog Box:
+ ++ +
+ +
+ + + +
+ +
Description: + Returns the dimensions of the bounding box of a geometrical object.
+ ++ +
Result: Displays + the dimensions of the bounding box of a geometrical object in the form + of Python Tuple (Xmin, Xmax, Ymin, Ymax, Zmin, Zmax).
+ ++ +
TUI command: geompy.BoundingBox(Shape), where Shape is a shape for which a bounding + box is computed.
+ ++ +
Arguments: + 1 shape.
+ ++ +
Dialog Box:
+ ++ +
+ +
+ + + +
+ +
Description: + Returns the min. distance between 2 geometrical objects.
+ ++ +
Result: Displays + the min. distance.
+ ++ +
TUI command: geompy.MinDistance(Shape1, + Shape2), where Shape1 and Shape2 + are shapes between which the minimal distance computed.
+ ++ +
Arguments: + 2 shapes.
+ ++ +
Dialog Box:
+ ++ +
+ +
+ + + +
+ +
Description: + Returns the tolerance of a geometrical object.
+ ++ +
Result: Displays + the tolerance values (FaceMinTol, FaceMaxTol, EgdeMinTol, EgdeMaxTol, + VertexMinTol, VertexMaxTol).
+ ++ +
TUI command: geompy.Tolerance(Shape), where Shape is a shape for which minimal + and maximal tolerances are returned.
+ ++ +
Arguments: + 1 shape.
+ ++ +
Dialog Box:
+ ++ +
+ +
+ +
WhatIs
+
+ +
Description: + Returns the type of a geometrical object.
+ ++ +
Result: Displays + all elements composing your geometrical object.
+ ++ +
TUI command: + geompy.WhatIs(Shape), where Shape + is a shape from which a description is returned.
+ ++ +
Arguments: + 1 shape.
+ ++ +
Dialog Box:
+ ++ +
+ +
+ +
Check
+
+ +
Description: + Returns True if this geometrical object is valid.
+ ++ +
Result: Boolean.
+ ++ +
TUI Command: + geompy.CheckShape(Shape), + where is shape which is checked for validity.
+ ++ +
Arguments: + 1 shape.
+ ++ +
Dialog Box:
+ ++ +
+ +
+ +
+ + + +
+ +
Description: + Checks whether a shape is a compound of glued blocks. To be considered + as a compound of blocks, the given shape must satisfy the following conditions:
+ +Each + element of the compound should be a Block (6 faces and 12 edges);
A + connection between two Blocks should be an entire quadrangle face or an + entire edge;
The + compound should be connected;
Two + quadrangle faces should be glued.
+ +
Informs of the following possible errors:
+ +not a block,
not glued,
not connected,
extra + or degenerated edge.
+ +
Result: Boolean; + highlight in the viewer.
+ ++ +
TUI Command: + geompy.CheckCompoundOfBlocks(Compound), + where the Compound is a shape, investigated in order to see, if it is + a valid compound of blocks. Validity flag is returned, encountered errors + are printed in the python console.
+ ++ +
Arguments: + 1 shape.
+ ++ +
Dialog Box:
+ ++ +
+ + + + diff --git a/doc/salome/gui/GEOM/files/salome2_sp3_operationgui_functions.htm b/doc/salome/gui/GEOM/files/salome2_sp3_operationgui_functions.htm new file mode 100755 index 000000000..d67650a0a --- /dev/null +++ b/doc/salome/gui/GEOM/files/salome2_sp3_operationgui_functions.htm @@ -0,0 +1,637 @@ + + + + + +
In GEOM you can perform
+ basic operations with geometrical objects aimed at creation of more complex
+ shapes. These operations are:
+ +
Blocks
+ +
To perform basic operations on geometrical objects:
+ ++ +
In the main menu select Operations.
+ ++ +
+ + + +
+ +
Description: + Builds a shape by intersection.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.MakePartition(ListOfShapes, + ListOfTools, ListOfKeepInside, ListOfRemoveInside, Limit, RemoveWebs, + ListOfMaterials), where ListOfShapes is a list of shapes to be + intersected, ListOfTools is a list of shapes to intersect the shapes from + ListOfShapes, ListOfKeepInside is a list of shapes outside which the results + will be deleted, ListOfRemoveInside is a list of shapes inside which the + results will be deleted, Limit is a type of the result shapes, if RemoveWebs + is True the Glue 3D algorithm will be performed on the results, ListOfMaterials + is a list of materials indices for each shape, it makes sense only if + RemoveWebs is True.
+ ++ +
Arguments: + Up to 4 shapes + reconstruction limit.
+ +1st + Constructor: Name + 2 shapes (first shape will be intersected by the + second shape) + reconstruction limit.
2nd + Constructor: Name + 1 shape which will be intersected + 1 cutting + face.
+ +
+ +
Dialog Box:
+ ++ +
+ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Creates a plane corresponding to the modeled water-line of the object + plunged into the water (in Z direction).
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.Archimede(Shape,Weight,WaterDensity,MeshingDeflection), + where Shape is a shape to put into the water, Weight is a weight of the + shape, WaterDensity is + density of water, MeshingDeflection is a deflection of the mesh, using + to compute the section.
+ ++ +
GUI Arguments: + Name + 1 shape + + 3 values (Weight, Water Density & Meshing Deflection).
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: + Make fillets of the edges of a shape.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.MakeFillet(Shape, Radius, + ShapeType, ListOfShapeID), where Shape is a shape to create a fillet + on, Radius is a radius of the fillet, ShapeType is a type of shapes to + be processed, ListOfShapeID is a list of subshape’s Ids to be processed.
+ ++ +
Arguments:
+ +1st + Constructor: Name + 1 shape + 1 value (fillet radius).
2nd + Constructor: Name + 1 shape + 1 Selection of edges + 1 value (Fillet + radius).
3rd + Constructor: Name + 1 shape + 1 Selection of faces + 1 value (Fillet + radius).
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: + Makes chamfer of the edges of a Shape.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: +
+ +geompy.MakeChamferEdge(Shape, + D1, D2, Face1, Face2), where Shape is a shape to create a chamfer + on, D1 is a chamfer size along Face1, D2 is a chamfer size along Face2, + Face1 and Face2 are indices of faces in Shape.
geompy.MakeChamferFace(Shape, + D1, D2, ListOfFaceID), where Shape is a shape to create chamfer + on, D1 is a chamfer size along a face from ListOfFaceID, + D2 is a + chamfer size along two faces connected to the edge to which the chamfer + is applied, ListOfFaceID is a list of indices of faces in Shape.
+ +
Arguments:
+ ++ +
1st + Constructor : Name + 1 SHAPE + 1 value (Chamfer dimension).
2nd + Constructor : Name + 1 SHAPE + 2 faces + 2 values (Chamfer dimensions).
3rd + Constructor : Name + 1 SHAPE + 1 Selection of faces + 2 values (Chamfer + dimensions).
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ +
+ +
+ +
+ + + +
+ +
Description: + Makes several translations of a block (solid) in one + or two directions depending on + the arguments specified by the user.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: +
+ +geompy. + MakeMultiTransformation1D(Block, DirFaceID1, DirFaceID2, NbTimes), + where Block is a block to be transformed, DirFaceID1 is an ID of the face + which defines the first direction of transformation, DirFaceID2 is an + ID of the face which defines the second direction of transformation, NbTimes + is a numeber of transformations.
geompy. + MakeMultiTransformation2D(Block, DirFaceID1U, DirFaceID2U, NbTimesU, DirFaceID1V, + DirFaceID2V, NbTimesV), where Block is a block to be transformed, + DirFaceID1U and DirFace1V are ID’s of the faces, which define directions + of the first transformation, DirFaceID1V and DirFaceID2V are ID’s of the + faces which define directions of the second transformation, NbTimesU and + NbTimesV are numbers of transformations.
+ +
Arguments:
+ ++ +
1D + transformation: Name + 1 hexahedral + solid + 1 or 2 faces + 1 integer (number of blocks)
2D + transformation: Name + 1 hexahedral + solid +
2 + faces and 1 integer, or
3 or 4 faces and 2 integers
+ +
Dialog Box:
+ +
+ |
+
+ |
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: + Returns blocks of the given compound. The user may define the type blocks + to be extracted by setting the minimum and maximum number of faces in + the target block. By checking the corresponding box the user may also + interactively choose the blocks from a compound .
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.MakeBlockExplode(Compound, + MinNbFaces, MaxNbFaces), where Compound is a compound to be exploded + into the blocks, MinNbFaces, MaxNbFaces are correspondingly the minimal + and the + maximal number of faces of the resulting blocks.
+ ++ +
Arguments: 1 compound + 1 integer (min. and max. number + of faces in the block to be extracted).
+ ++ +
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ +
+ + + +
+ +
Description: + Breaks a multitude of edges of a shape into groups (builds all possible + propagation groups).
+ ++ +
Result: List + of GEOM_Objects. Each Geom Object will contain a group of edges.
+ ++ +
TUI Command: + geompy.Propagate(Shape), + where Shape is a shape to build propagation groups on.
+ ++ +
Arguments: 1 Shape.
+ ++ +
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
In
+ GEOM you can create different types of primitive geometrical objects (3D
+ elements):
+ + + +
+ +
To construct primitive geometrical objects:
+ ++ +
In the main menu select New + Entity > Primitives.
+ ++ + + +
+ +
Description: Creates a box.
+ ++ +
Result: GEOM_Object (SOLID).
+ ++ +
TUI Command : geompy.MakeBox(X1, + Y1, Z1, X2, Y2, Z2), where + (X1, Y1, X2) and (X2, Y2, Z2) are coordinates of two points which define + a diagonal of the box.
+ ++ +
Arguments:
+ +1st Constructor + : Name + 2 vertices (opposite + corners of the box).
2nd Constructor + : Name + 3 values (dimensions + at origin).
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: Creates a cylinder.
+ ++ +
Result: GEOM_Object (solid).
+ ++ +
TUI Command: geompy.MakeCylinder(Point, + Axis, Radius, Height), where Point is a central point of the cylinder + base, Axis (vector value) is an axis of the cylinder, Radius and Height + are correspondingly a radius and a height of the cylinder.
+ ++ +
Arguments:
+ +1st Constructor: + Name + 1 vertex + 1 vector + 2 values + (Dimensions: radius and height).
2nd Constructor: + Name + 2 values (Dimensions at origin: + radius and height).
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: Creates a sphere.
+ ++ +
Result: GEOM_Object (solid).
+ ++ +
TUI Command: geompy.MakeSphere(Point, + Radius), where Point is a center of the sphere and Radius is a + radius of the sphere.
+ ++ +
Arguments:
+ +1st Constructor + : Name + 1 vertex + 1 value + (Radius).
2nd Constructor + : Name + 1 value + (Radius from the origin).
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: Creates a torus.
+ ++ +
Result: GEOM_Object (solid).
+ ++ +
TUI Command: geompy.MakeTorus(Point, + Vector, RadiusMajor, RadiusMinor), where Point is a central point + of the torus, Vector is an axis of symmetry, RadiusMajor and RadiusMinor + are correspondingly + a major and minor radiuses of the torus.
+ ++ +
Arguments:
+ +1st Constructor: + Name + 1 vertex + 1 vector (for + direction) + 2 values (1 & 2 Radius).
2nd Constructor: + Name + 2 values (1 & 2 Radius + from the origin).
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: Creates a cone.
+ ++ +
Result: GEOM_Object (SOLID).
+ ++ +
TUI Command: geompy.MakeCone(Point, + Axis, Radius1, Radius2), where Point is a central point of the + cone base, Axis (vector value) is an axis of the cone, Radius1 and Radius2 + are correspondingly the first and the second radiuses of the cone
+ ++ +
Arguments:
+ +1st Constructor: + Name + 1 vertex + 1 vector (for + direction) + 3 values (Radius of the base part, radius of the upper part, + height).
2nd Constructor: + Name + 3 values (Radius of the base + part, radius of the upper part, height).
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
Repairing operations are
+ used for adjustment and modification of created geometrical shapes. The
+ are:
+ +
The operations Suppress
+ faces, Close contour, Suppress internal wires, Suppress holes and
+ Add point on edge are
+ available only if you are using OCC
+ viewer.
+ +
To apply repairing operations:
+ ++ +
In the main menu select Repair + submenu.
+ ++ + + +
+ +
Description: + Processes a shape using various operators.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.ProcessShape(Shape, Operators, + Parameters, Values), where Shape is a processed shape, Operators + is a list of names of operators ("FixShape", "SplitClosedFaces", + etc.), Parameters is a list of names of parameters (“FixShape.Tolerance3d”, + etc), Values is a list of values of parameters in the same order as the + Parameters list.
+ ++ +
Arguments: + 1 or more shapes.
+ +
+ 1 |
+
+ SplitAngle – + this operator is intended for splitting faces based on conical surfaces, + surfaces of revolution and cylindrical surfaces by angle +SplitAngle.Angle – angle (in radians) defining + size of result segments. +SplitAngle.MaxTolerance – maximal possible + tolerance on result shape |
+ 2 |
+
+ SplitClosedFaces + – this operator is intended for dividing all closed faces in the shape + according to the number of points. +SplitClosedFaces.NbSplitPoints – number of + points for cutting each closed faces. |
+ 3 |
+
+ FixFaceSize + – this operator is intended for removing small faces (case of the spot + face and strip face) +FixFaceSize.Tolerance – work tolerance defining + which faces will be removed. |
+ 4 |
+
+ DropSmallEdges + – this operator is intended for removing small edges or merging with neigbour. + +DropSmallEdges.Tolerance3d – work tolerance + for detection and removing small edges. |
+ 5 |
+
+ BsplineRestriction + –this operator is intended for re-approximation BSplines curves and surfaces + or conversion of the curves and surfaces to BSplines with specified parameters. + +BSplineRestriction.SurfaceMode - mode of approximation + of surfaces if restriction is necessary +BSplineRestriction.Curve3dMode -mode of conversion + of any 3D curve to BSpline and approximation. +BSplineRestriction.Curve2dMode - mode of conversion + of any 2D curve to BSpline and approximation +BSplineRestriction.Tolerance3d – work tolerance + for definition of the possibility of the approximation of the surfaces + and 3D curves with specified parameters. +BSplineRestriction.Tolerance2d - work tolerance + for definition of the possibility of the approximation of the 2D curves + with specified parameters. +BSplineRestriction.Continuity3d – desired continuity + of the resultant surfaces and 3D curves. +BSplineRestriction.Continuity2d – desired continuity + of the resultant 2D curves. +BSplineRestriction.RequiredDegree - required + degree of the resultant BSplines +BSplineRestriction.RequiredNbSegments - required + maximum number of segments of resultant BSplines. |
+ 6 |
+
+ SplitContinuity + – this operator is intended for splitting shapes to achieve continuities + of curves and surfaces less than specified ones. +SplitContinuity.Tolerance3d - 3D tolerance + for correction of geometry. +SplitContinuity.SurfaceContinuity - required + continuity for surfaces. +SplitContinuity.CurveContinuity - required + continuity for curves. |
+ 7 |
+
+ ToBezier - this + operator is intended for conversion of the curves and surfaces of the + all types into Bezier curves and surfaces. +ToBezier.SurfaceMode - mode of conversion of + the surfaces. +ToBezier.Curve3dMode – mode for conversion + of the 3D curves. +ToBezier.Curve2dMode – mode for conversion + of the 2D curves. +ToBezier.MaxTolerance – max possible tolerance + on the resultant shape. |
+ 8 |
+
+ FixShape – this + operator is intended for correction of the invalid shapes +FixShape.Tolerance3d – work tolerance for detection + of the problems and correction of them. +FixShape.MaxTolerance3d - maximal possible + tolerance of the shape after correction. |
+ 9 |
+
+ SameParameter + – this operator is intended for fixing edges having not same parameter + 2D and 3D curves. +SameParameter.Tolerance3d – tolerance for detection + and fix problems. |
+ +
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
Shape before applying Shape Processing (FixShape + operator).
+ ++ +
+ +
The + same shape after applying Shape Processing.
+ ++ +
+ +
+ + + +
+ +
Description: + Suppresses a face of a shape.
+ ++ +
Result: GEOM_Object + (ListOfGeomShapes).
+ ++ +
TUI Command: + geompy.SuppressFaces(Shape, ListOfID), + where Shape is a shape to be processed, ListOfID is a list of faces ID's + to be removed.
+ ++ +
Arguments: + Name + Faces which should be removed (you can select them in the 3D viewer).
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description : + Closes an open contour and modifies the underlying face (if needed) in + accordance with user specified mode:
+ +By common vertex – a + vertex is created between the end points of the contour and its tolerance + is increased to a value of the gap between the ends of the contour;
By new edge – a new edge + is inserted between the end points of the contour.
+ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.CloseContour(Shape, Wires, + IsCommonVertex), where Shape is a shape to be processed, Wires + is a list of edges or wires ID’s which has to be closed within the shape + (if the list contains only one element = -1, the shape itself is considered + as a wire), IsCommonVertex + if this parameter is True a closure has to be done by creation of a common + vertex, otherwise an edge is added between the end vertices.
+ ++ +
Arguments: Name + 1 shape + contour (Wire, + or a set of Edges) + mode of closure (by vertex or by edge)
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ + + +
+ +
Description : + Removes all internal wires or specified internal wires from user specified + faces.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.SuppressInternalWires(Shape, + Wires), where Shape is a shape where wires are to be removed, Wires + is a list of wires ID’s to be removed; if the list is empty then all internal + wires are removed.
+ ++ +
+ +
Arguments:
+ +Name of the resulting + object
User specified face
User specified internal + wires (lying on this face except for its boundary), or, in case the Remove all internal wires box is checked, + all internal wires
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description : +
+ +1st + Constructor : Suppresses a hole in a shape.
2nd + Constructor : Suppresses a hole in a face.
+ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.SuppressHoles(Shape, + ListOfWireID), where Shape is a + shape where holes must be removed, ListOfWireID is a list of wire sub + shapes ID’s. If it is empty, then all holes are removed.
+ ++ +
Arguments: Name + + 1 shape + Wires which should be removed.
+ +Remove all + holes checkbox allows to fill all holes of a definite shape.
+ +Detect button + allows to display the number of free boundaries in your shape:
+ ++ +
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ +
+ + + +
+ +
Description: + Sew several shapes.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command : + geompy.MakeSewing(ListOfShape, Precision), + where ListOfShape is list of shapes to be sewed, Precision is a precision + for sewing.
+ ++ +
Arguments: + Name + 1 or more shapes + 1 value (sew precision).
+ +Detect + button allows to display the number of free boundaries in your + shape:
+ ++ +
+ +
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ +
+ + + +
+ +
Description: + Splits an edge in two in accordance with the specified mode (by length + or by parameter) and a value specifying the position of the point on edge + (for example val =0.5; mode = Length).
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command : + geompy.DivideEdge(Shape, EdgeID, + Value, IsByParameter), where Shape is a shape which contains an + edge to be divided, EdgeID is the ID of the edge to be divided, if it + = -1, then Shape is an edge, Value is a paramter on the edge or a length. + IsByParameter if it is True then Value is the edge parameter in the range + [0:1] otherwise it is a length of the edge in the range [0:1]
+ ++ +
Arguments: + Name + 1 Edge + 1 value setting the position of the point according to + one of the selected modes
+ ++ +
Dialog + Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ +
+ + + +
+ +
Description: + Glues faces that are coincident with respect to the given tolerance
+ +value.
+ ++ +
Result: + GEOM_Object.
+ ++ +
TUI Command + : geompy.MakeGlueFaces(theShape, + theTolerance), where theShape is a compound of shapesto be glued, + theTolerance is a maximum distance between two faces, which can be considered + as coincident.
+ ++ +
Arguments: + Name + 1 Compound + + Tolerance value
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ +
+ + + +
+ +
Description: + Detects wires and edges that correspond to the shape's boundary, and highlights + it
+ ++ +
Result: GEOM_Object. +
+ ++ +
TUI Command : (NoError, ClosedWires, OpenWires) = geompy.GetFreeBoundary(Shape), + where Shape is a shape to be checked, NoError is false if an error occurred + while checking free boundaries, ClosedWires is a list of closed free boundary + wires, OpenWires is a list of open free boundary wires.
+ ++ +
Arguments: + Shape
+ ++ +
Dialog + Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ +
+ + + +
+ +
Description: + Retrieves all free faces from a given shape. A free face is + a face not shared between two shells of the shape.
+ ++ +
Result: GEOM_Object. + Returns a list of IDs of all free faces, contained in the shape.
+ ++ +
TUI Command : GetFreeFacesIDs(Shape), where + Shape is a shape to be checked.
+ ++ +
Arguments: + Shape
+ ++ +
Dialog + Box:
+ ++ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/files/salome2_sp3_transformationgui_functions.htm b/doc/salome/gui/GEOM/files/salome2_sp3_transformationgui_functions.htm new file mode 100755 index 000000000..956e7ec71 --- /dev/null +++ b/doc/salome/gui/GEOM/files/salome2_sp3_transformationgui_functions.htm @@ -0,0 +1,669 @@ + + + + + +
In GEOM there is a set
+ of operations allowing to transform the initial geometrical object into
+ other objects, which will be also created. These operations are
+ +
+ +
All these operations are accessible in the + main menu, via Operations / Transformation.
+ ++ + + +
+ +
Description: + Makes a translation of a shape.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.MakeTranslation(Shape, DX, + DY, DZ), where Shape is a shape to be translated, DX, DY, DZ are + components of translation vector.
+ ++ +
Arguments: +
+ +1st + Constructor: Name + 1 shape + + 3 values (coordinates).
2st + Constructor: Name + 1 shape + + 2 vertices.
3st + Constructor: Name + 1 shape + + 1 vector.
+ +
Create a copy + checkbox allows to keep the initial object, otherwise it will be + removed.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
Rotation
+
+ +
Description: + Rotates the initial shape.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.MakeRotation(Shape, Axis, + Angle), where Shape is a shape to be rotated, Axis is an axis of + rotation, Angle is an angle of rotation.
+ ++ +
Arguments: + 1 shape + 1 vector for direction of rotation + 1 angle.
+ +Reverse checkbox + allows to specify the direction of rotation.
+ +Create a copy + checkbox allows to keep the initial object, otherwise it will be + removed.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: + Modification of location of an object.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.MakePosition(theObject, theStartLCS, theEndLCS), where theObject + is a shape, location of which is modified, theStartLCS is a location to + move the shape from, theEndLCS is a location to move the shape to.
+ ++ +
Arguments: + Name + 1 GEOM_Object + [Starting Coordinate System] + End Coordinate System.
+ +Create a copy + checkbox allows to keep the initial object, otherwise it will be + removed.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
+ +
+ +
Mirror
+
+ +
Description: + Symmetrical copy of a shape.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.MakeMirrorByPlane(Shape, + Plane), where Shape is a shape to be mirrored, Plane is a plane + of symmetry.
+ ++ +
Arguments: +
+ +1st + Constructor: Name + 1 shape + + 1 vertex.
2st + Constructor: Name + 1 shape + + 1 vector.
3st + Constructor: Name + 1 shape + + 1 plane.
Create a copy + checkbox allows to keep the initial object, otherwise it + will be removed.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Creates a scaled shape basing on the initial shape.
+ ++ +
Result: GEOM_Object.
+ ++ +
TUI Command: + geompy.MakeScaleTransform(Shape, + CenterOfScale, Factor), where Shape is a shape to be scaled, CenterOfScale + is a center point of scale, Factor is a factor of the scale.
+ ++ +
Arguments: + Name + 1 shape(s) + 1 vertex + 1 Scale Factor.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Each point is translated along a local normal by a given distance (signed + number, negative value meaning inner offset). Offset operation is applicable + to faces, shells and solids.
+ ++ +
Result: GEOM_Object +
+ ++ +
TUI Command: + geompy.MakeOffset(Shape, Offset), + where Shape is a shape which has to be an offset, Offset is a value of + the offset.
+ ++ +
Arguments:
+ +Name of the resulting + object
GEOM_Object (face, shell, + solid, compound)
offset value
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ + + +
+ +
Description: + Makes several translations of a shape in one + or two directions.
+ ++ +
Result: GEOM_Object + (compound).
+ ++ +
TUI Command:
+ +geompy.MakeMultiTranslation1D(Shape, + Dir, Step, NbTimes), where Shape is a shape to be translated, Dir + is a direction of translation, Step is a step of the translation, NbTimes + is a number of times the shape must be moved.
geompy.MakeMultiTranslation2D(Shape, + Dir1, Step1, NbTimes1, Dir2, Step2, NbTimes2), where Shape is a + shape to be translated, Dir1 is the first direction of translation, Step1 + of the first translation, NbTimes1 is a number of translations to be done + along, Dir2 is the second direction of translation, Step2 of the second + translation, NbTimes2 is a number of translations to be done along Dir2.
+ +
Arguments:
+ +1st + Constructor (in one direction): + Name + 1 shape + 1 vector (for direction) + 1 step value + 1 value (repetition).
2nd + Constructor (in two directions): + Name + 1 shape + 2 vectors defining the direction + 2 step values + 2 + values (repetitions).
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
One direction:
+ ++ +
+ +
Two directions:
+ ++ +
+ +
+ + + +
+ +
Description: + Creates several rotated geometrical objects in one + or two directions + basing on the initial geometrical object.
+ ++ +
Result: GEOM_Object + (compound).
+ ++ +
TUI Command:
+ +geompy.MakeMultiRotation1D(Shape, + Axis, NbTimes), where Shape is a shape to be rotated, Axis is an + Axis of rotation, NbTimes is a number of the shape must be rotated.
geompy.MakeMultiRotation2D(Shape, + Axis, Angle, NbTimes1, Step, NbTimes2), where Shape is a shape + to be rotated, Axis is an axis of rotation, Angle is an angle of rotation, + NbTimes1 is a number of rotation, Step is a step of translation, NbTimes2 + is a number of translation.
+ +
Arguments:
+ +1st + Constructor (in one direction): + Name + 1 shape + 1 vector for direction + 1 value (repetition).
2nd + Constructor (in two directions): + Name + 1 shape + 1 vector for direction + 1 angle + 1 value (repetition) + + 1 step value + 1 value (repetition); Reverse + checkbox allows to set the direction of rotation.
+ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
One direction:
+ ++ +
+ +
Two directions:
+ ++ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/fillet.htm b/doc/salome/gui/GEOM/fillet.htm new file mode 100755 index 000000000..9c7c45168 --- /dev/null +++ b/doc/salome/gui/GEOM/fillet.htm @@ -0,0 +1,179 @@ + + + + + +
To produce + a Fillet in the Main Menu select + Operations - > Transformation - > + Fillet
+ ++ +
This operation creates + fillets on the edges of a shape.
+ +The + Result will be a GEOM_Object.
+ ++ +
To create fillets on all edges of the given + shape, you need to define the Main Object + to create a fillet on and the Radius + of the Fillet.
+ +TUI Command: + geompy.MakeFilletAll(Shape, R)
+ +Arguments: Name + 1 shape + 1 value + (fillet radius).
+ ++ +
+ +
To create fillets on + the specified edges or faces of the given shape, you + need to define the Main Object + to create a fillet on, select the necessary edges or faces in the object + browser or in the viewer and define the Radius + of the Fillet.
+ +TUI + Command: geompy.MakeFillet(Shape, R, ShapeType, ListShapes) +
+ +Arguments: Name + 1 shape + 1 Selection + of edges (or faces) + 1 value (Fillet radius).
+ ++ +
+ +
Example:
+ ++ +
Fillet on all Fillet + on an edge Fillet + on a Face
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Transformation + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/filling.htm b/doc/salome/gui/GEOM/filling.htm new file mode 100755 index 000000000..2d6edb477 --- /dev/null +++ b/doc/salome/gui/GEOM/filling.htm @@ -0,0 +1,153 @@ + + + + + +
To generate + a Filling in the Main + Menu select New Entity - > + Generation - + > Filling
+ ++ +
To create a curving face using several curves + you need to define the Curves, + which will be the components of your face, Minimum + and Maximum Degree, Tolerance + for 2D and for 3D + and + the Number of Iterations.
+ +The + Result of the operation will be a + GEOM_Object (face).
+ ++ +
TUI Command: + geompy.MakeFilling(Shape, MinDegree, + MaxDegree, Tol2D, Tol3D, NbIter),
+ +Arguments: + Name + 1 List of edges + 5 Parameters (Min. degree, Max. degree, Number + of iterations, 2D tolerance, 3D tolerance).
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Complex Geometric + Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/fuse.htm b/doc/salome/gui/GEOM/fuse.htm new file mode 100755 index 000000000..6108eb671 --- /dev/null +++ b/doc/salome/gui/GEOM/fuse.htm @@ -0,0 +1,147 @@ + + + + + +
To produce + a Fuse in the Main Menu select + Operations - > Boolean - > Fuse
+ ++ +
This operation creates a shape from two + shapes.
+ ++ +
The Result + will be a GEOM_Object (COMPOUND).
+ +Arguments: + Name + 2 shapes.
+ +TUI + Command: geompy.MakeFuse(s1, + s2)
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Boolean + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/geom.log b/doc/salome/gui/GEOM/geom.log new file mode 100755 index 000000000..b154fdc0f --- /dev/null +++ b/doc/salome/gui/GEOM/geom.log @@ -0,0 +1,648 @@ +|SourceProjectName:GEOM.hpr +|DestinationProjectName:geom.htm +whhost.js +whmsg.js +whmozemu.js +whproxy.js +whstub.js +whutils.js +whver.js +whform.js +whphost.js +whstart.js +whtopic.js +whframes.js +whlang.js +whskin_info.htm +whskin_blank.htm +whskin_pickup.htm +whskin_homepage.htm +whskin_tw.htm +whnjs.htm +whthost.js +whtdhtml.htm +whihost.js +whibody.htm +whiform.htm +whfhost.js +whfbody.htm +whfform.htm +whghost.js +whgbody.htm +whgdhtml.htm +whgdef.htm +whproj.js +whproj.xml +whproj.htm +whxdata\whtoc.xml +whxdata\whidx.xml +whxdata\whfts.xml +whxdata\whglo.xml +whdata\whtoc.js +whdata\whtoc.htm +whdata\whtdata.js +whdata\whidx.js +whdata\whidx.htm +whdata\whidata.js +whdata\whfts.js +whdata\whfts.htm +whdata\whglo.js +whdata\whglo.htm +whdata\whgdata.js +whdata\whftdata.js +whdata\whfwdata.js +whres.xml +webhelp.jar +webhelp.cab +whgdata\whnvp30.htm +whgdata\whnvp31.htm +whgdata\whnvp32.htm +whgdata\whnvp33.htm +whgdata\whnvt30.htm +whgdata\whnvt31.htm +whgdata\whnvt32.htm +whgdata\whnvt33.htm +whgdata\whnvf30.htm +whgdata\whnvf31.htm +whgdata\whnvf32.htm +whgdata\whnvf33.htm +whgdata\whnvl31.htm +whgdata\whnvl32.htm +whgdata\whnvl33.htm +whgdata\whexpbar.gif +cshdat_webhelp.htm +whcsh_home.htm +whcshdata.htm +cshdat_robohelp.htm +wht_tab0.gif +wht_tab1.gif +wht_tab2.gif +wht_tab3.gif +wht_tab4.gif +wht_tab5.gif +wht_tab6.gif +wht_tab7.gif +wht_tab8.gif +wht_glo_h.gif +wht_glo_n.gif +wht_fts_h.gif +wht_fts_n.gif +wht_idx_h.gif +wht_idx_n.gif +wht_toc_h.gif +wht_toc_n.gif +wht_ws.gif +wht_ws_g.gif +wht_logo1.gif +wht_logo2.gif +wht_abgw.jpg +wht_abgi.jpg +wht_abge.jpg +wht_abtw.jpg +wht_abte.jpg +wht_abti.jpg +wht_spac.gif +wht_next.gif +wht_next_g.gif +wht_prev.gif +wht_prev_g.gif +wht_sync.gif +wht_hide.gif +wht_go.gif +whstart.ico +whestart.ico +whrstart.ico +whidhtml.htm +whfdhtml.htm +whskin_banner.htm +whtbar.js +whskin_pdhtml.htm +whskin_papplet.htm +whskin_plist.htm +whskin_tbars.htm +whskin_mbars.htm +wht_toc4.gif +wht_toc1.gif +wht_toc2.gif +wht_toc3.gif +whskin_frmset010.htm +whst_topics.xml +whskin_frmset01.htm +geom_hha.hhk +geom.hhc +geom.hhk +add_point_on_edge.htm +arc.htm +archimede.htm +basic_geometrical_objects.htm +basic_operations.htm +blocks.htm +blocks_operations.htm +boolean_operations.htm +box.htm +building_by_blocks.htm +chamfer.htm +changing_display_parameters.htm +changing_displaying_parameters.htm +check_free_boundaries.htm +check_free_faces.htm +circle.htm +close_contour.htm +common.htm +complex_objects.htm +compound.htm +cone.htm +curve.htm +cut.htm +cylinder.htm +edge.htm +ellipse.htm +explode.htm +explode_on_blocks.htm +extrusion.htm +face.htm +files\introduction_to_geom.htm +files\salome2_sp3_basicgui_functions.htm +files\salome2_sp3_booleangui_functions.htm +files\salome2_sp3_buildgui_functions.htm +files\salome2_sp3_displaygui_functions.htm +files\salome2_sp3_generationgui_functions.htm +files\salome2_sp3_geomtoolsgui_functions.htm +files\salome2_sp3_measuregui_functions.htm +files\salome2_sp3_operationgui_functions.htm +files\salome2_sp3_primitivegui_functions.htm +files\salome2_sp3_repairgui_functions.htm +files\salome2_sp3_transformationgui_functions.htm +fillet.htm +filling.htm +fuse.htm +geometrical_objects.htm +glue_faces.htm +groups.htm +line.htm +local_coordinate_system.htm +measurement_tools.htm +mirror_image.htm +modify_the_location.htm +multi_rotation.htm +multi_transformation.htm +multi_translation.htm +newentity_blocks.htm +offset_surface.htm +partition.htm +pipe_creation.htm +plane.htm +point.htm +primitives.htm +propagate.htm +repairing_operations.htm +revolution.htm +rotation.htm +scale_transform.htm +section.htm +sewing.htm +shape_processing.htm +shell.htm +sketcher.htm +sketcher_tui.htm +solid.htm +sphere.htm +suppress_faces.htm +suppress_holes.htm +suppress_internal_wires.htm +transformation_operations.htm +translation.htm +turus.htm +vector.htm +wire.htm +working_plane.htm +working_with_groups.htm +ehelp.xml +geom.glo +default.css +pics\chamfer_all.png +pics\edgesn.png +pics\boxes.png +pics\mtrans1.png +pics\transformation3.png +pics\mtransf2.png +pics\export.png +image15.jpg +image204.jpg +image56.gif +image149.jpg +image127.jpg +image23.gif +image12.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image73.gif +files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image55.gif +files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image4.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image17.gif +pics\archimedesn1.png +pics\neo-basicprop.png +pics\mtrans2.png +pics\transformation4.png +pics\mtransf3.png +pics\plane1.png +image16.jpg +image57.gif +image35.gif +image128.jpg +image24.gif +image27.jpg +image13.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image74.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image18.gif +pics\suppress_faces1.png +pics\mirror_axissn1.png +pics\archimedesn2.png +pics\revolutionsn.png +pics\ellipsesn.png +pics\transformation10.png +pics\transformation5.png +pics\mtransf4.png +pics\plane2.png +image206.jpg +image25.gif +image129.jpg +image14.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image75.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image30.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image19.gif +pics\suppress_faces2.png +pics\multi_translation1dsn.png +pics\mirror_axissn2.png +pics\multi_transformationsn2d.png +pics\archimedesn3.png +pics\wiresn.png +pics\transformation11.png +pics\transformation6.png +pics\block1.png +pics\creategroup.png +pics\pipe.png +pics\torus1.png +pics\plane3.png +image59.gif +image37.gif +image15.gif +image18.jpg +files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image130.gif +files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image87.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image76.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image31.gif +pics\multi_transformationsn1d.png +pics\fillingsn.png +pics\spheres.png +pics\polyline.png +pics\neo-obj1.png +pics\repair1.png +pics\transformation7.png +pics\block2.png +pics\torus2.png +image27.gif +image191.jpg +image180.jpg +image49.gif +image109.jpg +image16.gif +files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image131.gif +files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image119.gif +files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image88.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image77.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image32.gif +pics\glue_faces1.png +pics\supp_int_wires1.png +pics\fusesn1.png +pics\transparencysn.png +pics\arcsn.png +pics\points.png +pics\neo-obj2.png +pics\neo-localcs1.png +pics\measures10.png +pics\repair2.png +pics\transformation8.png +pics\block3.png +image181.jpg +image170.jpg +image80.jpg +image17.gif +files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image132.gif +files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image89.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image78.gif +image3.jpg +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image33.gif +pics\glue_faces2.png +pics\supp_int_wires2.png +pics\sectionsn.png +pics\fusesn2.png +pics\toruses.png +pics\circles.png +pics\neo-materials.png +pics\neo-obj3.png +pics\neo-localcs2.png +pics\neo-isos.png +pics\measures1.png +pics\repair3.png +pics\transformation9.png +pics\bool1.png +pics\partition1.png +pics\block4.png +pics\sphere1.png +image193.jpg +image29.gif +image171.jpg +image160.jpg +image81.jpg +files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image133.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image34.gif +pics\chamfer_faces.png +pics\fillet_prism.png +pics\rotationsn1.png +pics\disp_mode1sn.png +pics\pipesn.png +pics\pipe_wire_edgesn.png +pics\cones.png +pics\planes1.png +pics\lines.png +pics\neo-obj4.png +pics\neo-localcs3.png +pics\repair4.png +pics\bool2.png +pics\partition2.png +pics\block5.png +pics\sphere2.png +pics\point1.png +pics\import.png +image172.jpg +image150.jpg +image82.jpg +image19.gif +image5.jpg +pics\rotationsn2.png +pics\disp_mode2sn.png +pics\neo-detect2.png +pics\neo-section.png +pics\neo-obj5.png +pics\measures3.png +pics\repair5.png +pics\bool3.png +pics\chamfer1.png +pics\filling.png +pics\revolution.png +pics\arc.png +pics\ellipse.png +pics\circle1.png +image3.gif +image151.jpg +image94.jpg +image83.jpg +files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image56.gif +pics\free_boudaries1.png +pics\multi_rotation1d1.png +pics\multi_translation2dsn.png +pics\offsetsn.png +pics\isos_u12_v12sn.png +pics\compoundsn.png +pics\prisms_basessn.png +pics\cylinders.png +pics\vectors.png +pics\neo-obj6.png +pics\measures4.png +pics\repair6.png +pics\chamfer2.png +pics\cone1.png +pics\circle2.png +pics\point3.png +image185.jpg +image163.jpg +image130.jpg +image95.jpg +image84.jpg +image4.gif +files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image57.gif +pics\free_boudaries2.png +pics\multi_rotation2d1.png +pics\multi_rotation1d2.png +pics\mirror_pointsn1.png +pics\new-tolerance.png +pics\neo-obj7.png +pics\neo-point2.png +pics\measures5.png +pics\repair7.png +pics\chamfer3.png +pics\cone2.png +image197.jpg +image164.jpg +image96.jpg +image85.jpg +image52.jpg +image8.jpg +files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image58.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image27.gif +pics\chamfer_edge.png +pics\fillet_edge.png +pics\multi_rotation2d2.png +pics\scale_transformsn1.png +pics\mirror_pointsn2.png +pics\cutsn.png +pics\shellsn.png +pics\filling_compoundsn.png +pics\prismssn.png +pics\neo-mrot1.png +pics\repair8.png +pics\cylinder1.png +pics\vector1.png +image61.gif +image154.jpg +image121.jpg +image110.jpg +image97.jpg +image53.jpg +image9.jpg +image6.gif +files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image59.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image28.gif +pics\scale_transformsn2.png +pics\translationsn1.png +pics\facesn1.png +pics\neo-mrot2.png +pics\repair9.png +pics\cylinder2.png +pics\vector2.png +image188.jpg +image51.gif +image133.jpg +image122.jpg +image98.jpg +image76.jpg +image54.jpg +image7.gif +image10.jpg +files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image128.gif +files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image121.gif +files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image90.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image29.gif +i_blue.jpg +pics\free_faces1.png +pics\fillet_all.png +pics\translationsn2.png +pics\partitionsn1.png +pics\colorsn.png +pics\facesn2.png +pics\interpol.png +pics\measures8.png +pics\fillet1.png +pics\archimede.png +pics\workplane4.png +image189.jpg +image52.gif +image167.jpg +image156.jpg +image41.gif +image145.jpg +image112.jpg +files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image51.gif +image8.gif +image11.jpg +files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image129.gif +files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image122.gif +files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image100.gif +files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image99.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image13.gif +pics\free_faces2.png +pics\mirror_planesn1.png +pics\block_explodesn.png +pics\partitionsn2.png +pics\solidsn.png +pics\facesn3.png +pics\distance.png +pics\neo-scetcher1.png +pics\neo-transparency.png +pics\measures9.png +pics\fillet2.png +pics\workplane5.png +image201.jpg +image53.gif +image168.jpg +image42.gif +image124.jpg +image113.jpg +image78.jpg +image20.gif +image67.jpg +image9.gif +image12.jpg +files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image101.gif +files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image52.gif +files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image1.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image14.gif +pics\mirror_planesn2.png +pics\neo-scetcher2.png +pics\transformation1.png +pics\fillet3.png +pics\box1.png +pics\workplane6.png +pics\curve.png +pics\line.png +image10.gif +image202.jpg +image147.jpg +image32.gif +image79.jpg +image21.gif +files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image102.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image71.gif +files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image53.gif +files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image2.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image15.gif +pics\multi_translation_initialsn.png +pics\plane_on_face.png +pics\bezier.png +pics\repair10.png +pics\transformation2.png +pics\mtransf1.png +pics\editgroup.png +pics\extrusion.png +pics\box2.png +image44.gif +image22.gif +image11.gif +files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image103.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image72.gif +files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image54.gif +files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image3.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image16.gif +ehlpdhtm.js +geom.ppf +default_ns.css +whxdata\whtdata0.xml +whxdata\whftdata0.xml +whxdata\whfwdata0.xml +whxdata\whgdata0.xml +whdata\whtdata0.htm +whdata\whftdata0.htm +whdata\whfwdata0.htm +whdata\whgdata0.htm +whgdata\whlstt0.htm +whgdata\whlstt1.htm +whgdata\whlstt2.htm +whgdata\whlstt3.htm +whgdata\whlstt4.htm +whgdata\whlstt5.htm +whgdata\whlstt6.htm +whgdata\whlstt7.htm +whgdata\whlstt8.htm +whgdata\whlstt9.htm +whgdata\whlstt10.htm +whgdata\whlstt11.htm +whgdata\whlstt12.htm +whgdata\whlstt13.htm +whgdata\whlstt14.htm +whgdata\whlstt15.htm +whgdata\whlstt16.htm +whgdata\whlsti0.htm +whgdata\whlstfl0.htm +whgdata\whlstfl1.htm +whgdata\whlstfl2.htm +whgdata\whlstfl3.htm +whgdata\whlstfl4.htm +whgdata\whlstfl5.htm +whgdata\whlstfl6.htm +whgdata\whlstfl7.htm +whgdata\whlstfl8.htm +whgdata\whlstfl9.htm +whgdata\whlstfl10.htm +whgdata\whlstfl11.htm +whgdata\whlstfl12.htm +whgdata\whlstfl13.htm +whgdata\whlstfl14.htm +whgdata\whlstfl15.htm +whgdata\whlstfl16.htm +whgdata\whlstfl17.htm +whgdata\whlstfl18.htm +whgdata\whlstfl19.htm +whgdata\whlstfl20.htm +whgdata\whlstfl21.htm +whgdata\whlstfl22.htm +whgdata\whlstfl23.htm +whgdata\whlstfl24.htm +whgdata\whlstfl25.htm +whgdata\whlstf0.htm +whgdata\whlstf1.htm +whgdata\whlstf2.htm +whgdata\whlstf3.htm +whgdata\whlstf4.htm +whgdata\whlstf5.htm +whgdata\whlstf6.htm +whgdata\whlstf7.htm +whgdata\whlstf8.htm +whgdata\whlstf9.htm +whgdata\whlstf10.htm +whgdata\whlstf11.htm +whgdata\whlstf12.htm +whgdata\whlstf13.htm +whgdata\whlstf14.htm +whgdata\whlstg0.htm +geom.htm +geom_csh.htm +geom_rhc.htm diff --git a/doc/salome/gui/GEOM/geometrical_objects.htm b/doc/salome/gui/GEOM/geometrical_objects.htm new file mode 100755 index 000000000..7008952e1 --- /dev/null +++ b/doc/salome/gui/GEOM/geometrical_objects.htm @@ -0,0 +1,571 @@ + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = + geompy.MakeVertex(0. , + 0. , 0. + )
+ +pxyz = geompy.MakeVertex(100., + 100., 100.)
+ ++ +
# create edge
+ +edge = geompy.MakeEdge(p0, + pxyz)
+ ++ +
# add object in study
+ +id_edge = geompy.addToStudy(edge,"Edge")
+ ++ +
# display edge
+ +gg.createAndDisplayGO(id_edge) +
+ ++ +
import + geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +px = + geompy.MakeVertex(100., 0. , + 0. )
+ +py = + geompy.MakeVertex(0. , + 100., 0. )
+ +pz = + geompy.MakeVertex(0. , + 0. , 100.)
+ ++ +
# create vector on two + points
+ +vxy = geompy.MakeVector(px, + py)
+ ++ +
# create arc with three + points
+ +arc = geompy.MakeArc(py, + pz, px)
+ ++ +
# create wire
+ +wire = geompy.MakeWire([vxy, + arc])
+ ++ +
# add object in study
+ +id_wire = geompy.addToStudy(wire,"Wire")
+ ++ +
# display wire
+ +gg.createAndDisplayGO(id_wire) +
+ ++ +
+ +
import + geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = + geompy.MakeVertex(0. , + 0. , 0. + )
+ +px = + geompy.MakeVertex(100., 0. , + 0. )
+ +py = + geompy.MakeVertex(0. , + 100., 0. )
+ +pz = + geompy.MakeVertex(0. , + 0. , 100.)
+ +pxyz = geompy.MakeVertex(100., + 100., 100.)
+ ++ +
# create vector on two + points
+ +vxy = geompy.MakeVector(px, + py)
+ ++ +
# create arc with three + points
+ +arc = geompy.MakeArc(py, + pz, px)
+ ++ +
# create wire
+ +wire = geompy.MakeWire([vxy, + arc])
+ ++ +
# create sketchers
+ +sketcher1 = geompy.MakeSketcher("Sketcher:F + -100 -100:TT 250 -100:R 0:C 100 150:R 0:L 300:WW",
+ +[100,0,0, + 1,1,1, -1,1,0])
+ +sketcher2 = geompy.MakeSketcher("Sketcher:F + 0 0:TT 70 0:TT 70 70:TT 0 70:WW")
+ +sketcher3 = geompy.MakeSketcher("Sketcher:F + 20 20:TT 50 20:TT 50 50:TT 20 50:WW")
+ +isPlanarFace = 1
+ ++ +
# create face from wire
+ +face1 = geompy.MakeFace(wire, + isPlanarFace)
+ ++ +
# create faces from two + wires
+ +face2 = geompy.MakeFaceWires([wire, + sketcher1],isPlanarFace)
+ +face3 = geompy.MakeFaces([sketcher2, + sketcher3],isPlanarFace)
+ ++ +
# add objects in study
+ +id_face1 = geompy.addToStudy(face1,"Face1")
+ +id_face2 = geompy.addToStudy(face2,"Face2")
+ +id_face3 = geompy.addToStudy(face3,"Face3")
+ ++ +
# display faces
+ +gg.createAndDisplayGO(id_face1)
+ +gg.setDisplayMode(id_face1,1)
+ +gg.setTransparency(id_face1,0.2)
+ +gg.createAndDisplayGO(id_face2)
+ +gg.setDisplayMode(id_face2,1)
+ +gg.setTransparency(id_face2,0.2)
+ +gg.createAndDisplayGO(id_face3)
+ +gg.setDisplayMode(id_face3,1)
+ +gg.setTransparency(id_face3,0.2) +
+ ++ +
import + geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
#create vertices
+ +p0 = + geompy.MakeVertex( 0., 0., + 0.)
+ +pxyz = geompy.MakeVertex( + 5., 5., + 40.)
+ ++ +
# create sketchers
+ +sketcher1 = geompy.MakeSketcher("Sketcher:F + 0 0:TT 70 0:TT 70 70:TT 0 70:WW")
+ +sketcher2 = geompy.MakeSketcher("Sketcher:F + 20 20:TT 50 20:TT 50 50:TT 20 50:WW")
+ +isPlanarFace = 1
+ ++ +
# create face from two + wires
+ +face = geompy.MakeFaces([sketcher1, + sketcher2],isPlanarFace)
+ ++ +
# create prism
+ +prism = geompy.MakePrism(face, + p0, pxyz)
+ ++ +
# explode prism on faces
+ +prism_faces = geompy.SubShapeAllSorted(prism, + geompy.ShapeType["FACE"])
+ ++ +
# create shell from the + set of faces
+ +shell = geompy.MakeShell([prism_faces[0], + prism_faces[2], prism_faces[3],
+ +prism_faces[7], + prism_faces[9]])
+ ++ +
# add objects in study
+ +id_shell = geompy.addToStudy(shell,"Shell")
+ ++ +
# display shell
+ +gg.createAndDisplayGO(id_shell)
+ +gg.setDisplayMode(id_shell,1) +
+ ++ +
import + geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
#create vertices
+ +p0 = geompy.MakeVertex( + 0., 0., + 0.)
+ +pz = geompy.MakeVertex( + 0., 0., + 40.)
+ ++ +
# create sketchers
+ +sketcher = geompy.MakeSketcher("Sketcher:F + -50 -50:TT 100 -50:R 0:C 50 70:R 0:L 100:WW")
+ ++ +
# create faces from two + wires
+ +face = geompy.MakeFace(sketcher,1)
+ ++ +
# create prism
+ +prism = geompy.MakePrism(face, + p0, pz)
+ ++ +
# explode prism on faces
+ +prism_faces = geompy.SubShapeAllSorted(prism, + geompy.ShapeType["FACE"])
+ ++ +
# create shell from the + set of faces
+ +shell = geompy.MakeShell([prism_faces[0], + prism_faces[1],
+ +prism_faces[3], + prism_faces[4],
+ +prism_faces[5], + prism_faces[2]])
+ ++ +
# create solid, bounded + by the given shells
+ +solid = geompy.MakeSolid([shell])
+ ++ +
# add objects in study
+ +id_solid = geompy.addToStudy(solid,"Solid")
+ ++ +
# display solid
+ +gg.createAndDisplayGO(id_solid)
+ +gg.setDisplayMode(id_solid,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
#create vertices
+ +p0 = geompy.MakeVertex( + 0., 0., + 0.)
+ +pz = geompy.MakeVertex( + 0., 0., + 40.)
+ ++ +
# create sketchers
+ +sketcher = geompy.MakeSketcher("Sketcher:F + -50 -50:TT 100 -50:R 0:C 50 70:R 0:L 100:WW")
+ ++ +
# create faces from two + wires
+ +face = geompy.MakeFace(sketcher,1)
+ ++ +
# create prism
+ +prism = geompy.MakePrism(face, + p0, pz)
+ ++ +
# explode prism on faces
+ +prism_faces = geompy.SubShapeAllSorted(prism, + geompy.ShapeType["FACE"])
+ ++ +
# create shell from the + set of faces
+ +shell = geompy.MakeShell([prism_faces[0], + prism_faces[1],
+ +prism_faces[3], + prism_faces[4],
+ +prism_faces[5], + prism_faces[2]])
+ ++ +
# create solid, bounded + by the given shells
+ +solid = geompy.MakeSolid([shell])
+ ++ +
# add objects in study
+ +id_solid = geompy.addToStudy(solid,"Solid")
+ ++ +
# display solid
+ +gg.createAndDisplayGO(id_solid)
+ +gg.setDisplayMode(id_solid,1) +
+ + + + diff --git a/doc/salome/gui/GEOM/geompy_doc/GEOM__TestMeasures_8py.html b/doc/salome/gui/GEOM/geompy_doc/GEOM__TestMeasures_8py.html new file mode 100644 index 000000000..06a37f66a --- /dev/null +++ b/doc/salome/gui/GEOM/geompy_doc/GEOM__TestMeasures_8py.html @@ -0,0 +1,29 @@ + + + + + +Namespaces | |
namespace | GEOM_TestMeasures |