Home Page > KernelCAD Models > Sections > Surface and Solid Sections > BRep Section
BRep Sections
BRep Sections
BRep Section is a surface constructed from arbitrary polygonal flat 3D patches (faces).
To create a BRep section call
IDIObjGenerator.Create( EObjectType.eObjTypeBRepSection ). and cast (query)
the return to ISection. To add patches to the
section query IDraw
from the ISection. and use sequence:
iDraw.Begin(ePolygon);
iDraw.Vertex(0, 0, 0);
iDraw.Vertex(1, 0, 0);
iDraw.Vertex(1, 1, 0);
iDraw.Vertex(0, 1, 0);
iiDraw->End();
to define a rectangle like above or any other polygon with arbitrary number
of vertices (at least three). Repeat the above sequence for each face to
construct the surface. See TwoD sample for
an example.
The patches added in the above way are considered to have sharp edges so it is
not correct to construct smooth curved surfaces like cylinder using BRep
sections
See also: TwoD sample,
|