Project a face on a plane Z=0

Hi I want to project a Face on plane Z=0. For that purpose , I create a Transformation using gp_Trsf. This transformation must be ((1,0,0) (0,1,0) (0,0,0)) Then I use de gp_Trsf::SetValues(). This function compute the determinant of the matrix which is 0 and then divide the matrix. Finally the gp_Trsf is composed by NAN/Infinity values;

xav

Michael Sazonov's picture

gp_Trsf doesn't support affinity transformations. Use gp_GTrsf for that. To apply a general transformation to a shape use the class BRepBuilderAPI_GTransform. You can test it in Draw with the command deform.

Michael.