3D object surface and plane intersection contours.


Let's create a set of groups of line segments by intersecting the surface of a torus and a set of surfaces.


The code of creating a torus and drawing clips:


  sgCTorus* tor1 = sgCreateTorus(2,1 ,36,36);



 SG_VECTOR transV2 = {-6,0,0};

for (int i=-30;i<30;i+=4)



   plN.x =0.0; plN.y = 1.0; plN.z = 1.0;


   sgCGroup* bool1 = sgBoolean::Section(*tor1, plN, 0.1*i );


  if (bool1)












See also:

sgBoolean   sgBoolean::Section

sgCGroup     sgCGroup::BreakGroup   sgCGroup::GetChildrenList

sgCObject::InitTempMatrix sgCMatrix::Translate   sgCObject::ApplyTempMatrix   SgCObject::DestroyTempMatrix   sgGetScene sgCScene::AttachObject   sgCObject::SetAttribute