Home Page > Programming Samples and Tutorials > Overview > Strip Topology
StripTopol Sample Description
StripTopol Sample
Source code for StripTopol sample is available in Samples\VC
folder of the installation directory. If you are going to compile
the project we suggest to
copy whole VC directory to location outside of the installation folder.
StripTopol is a simple MFC dialog-based application, which demonstrates
topological operations performed programmatically on strips of surface patches.
See also Visual C++ Samples,
All samples
Running the application
On load the application displays the default model (cube). For simplicity the
application displays and modifies information related to the first top level
object in the model (see Structure of DInsight models). Controls on the right
display properties of the surface strip in the object. "Joint" edit
boxes allow modification of the current joint. In case of
Generic 3D Section
the modification will be applied at the current z position, which is in the middle
by default.
The menu contains topological commands which modify structure of the surface
strip. It is important to remember that edges are numbered in CCW direction when
looking from the end of the local Z axis. This can be verified by changing
coordinate in "Joint" edit boxes. Number of a surface patch is the
number of its first edge in the same direction.
New Knot command allows increasing number of knots in the axial base, hence increasing
degree of freedom for modifications along z axis. Note that this command has no
meaning for Surface Of Revolution objets as those do not have axial base.
File submenu allows saving and loading models.
Implementation
Please select your language:
.NET Platform
C#
Native
C++
|