Examples of working with the sgCore library.

 

In this section the examples realized in the demo application (Demo.exe) are analyzed.

Here you can find only objects creation methods. One of the examples of drawing objects is given in the source code of the Demo.exe application (the Painter class).

 

Clicking an image of the necessary example you will open the detailed description how to create it (C++ program):

 

points

 

 

 

Points

lines

 

 

 

Line segments

circles

 

 

 

Circles

 

 

 

arcs

 

 

 

Arcs

splines

 

 

 

 

Splines

contours

 

 

 

 

Contours

equidi

 

 

 

 

Equidistant line

boxes

 

 

 

 

Boxes

 

spheres

 

 

 

 

Spheres

 

 

 

 

cyls

 

 

 

Cylinder

cones

 

 

 

 

Cones

tors

 

 

Toruses

ells

 

 

Ellipsoids

spB

 

 

 

Spherical band

bool_inters

 

 

 

Boolean intersection

bool_un

 

 

 

Boolean uniting

bool_sub

 

 

 

 

Boolean subtraction

bool_in_con

 

 

 

 

Intersection contours

bool_pl_sec

 

 

 

 

Clips by planes

kin_roS

 

 

 

 

 

 

Revolved surface

kin_roB

 

 

 

 

 

 

Revolved solids

kin_ex_s

 

 

 

Surfaces of extrusion

kin_ex_b

 

 

 

 

 

Solids of extrusion

kin_sp_s

 

 

 

 

 

Spiral surfaces

kin_sp_b

 

 

 

 

Spiral solids

kin_pip_s

 

 

 

 

 

Pipe-like surfaces

kin_pip_b

 

 

 

Pipe-like solids

mesh

 

 

 

 

 

Meshes

face

 

 

 

 

 

Flat faces with holes

coons3

 

 

 

 

 

 

 

Coons surfaces by three boundary contours

coons4

 

 

 

 

Coons surfaces by four boundary contours

linearS

 

 

 

 

 

 

 

Ruled surfaces by two clips

splin_sur

 

 

 

 

 

 

 

Spline surfaces by clips

splin_bod

 

 

 

 

 

 

 

Spline solids by clips

room

 

 

 

 

 

 

 

 

 

Room

drills

 

 

 

 

 

 

Drills

clock

 

 

 

 

 

 

 

Clock