Recent content by ilpup

  1. I

    OCC AIS Viewer

    never mind, you were right, nothing change. The problem was because I didn't invalidate the view before redrawing (for an animation). In fact the lesson's codes are a big help, so a big thank you!
  2. I

    OCC AIS Viewer

    knowing very little on win32 API I not sure it make sense something like the following (tested, it works) void Viewer::AddShape(const TopoDS_Shape& shape) { m_shapes.push_back(shape); CreateAISShape(shape); } void Viewer::CreateAISShape(const TopoDS_Shape&...
  3. I

    OCC AIS Viewer

    I was trying the AIS example class on gitlab lesson14. I noticed that StartMessageLoop() must be always called at the end: Viewer vout(0, 50, 500, 500); // add geometry to viewer vout.StartMessageLoop(); However I think it would have been better to have something like Viewer vout(0, 50...
  4. I

    How to check if a face 'belongs' to surface

    Understood, thanks
  5. I

    How to check if a face 'belongs' to surface

    Thank you very much Quaoar. Maybe my question was a bit stupid:)... in fact I was only trying to better understand how the library handles the conversion of step entities. I think in the specific an OPEN_SHELL item is declared in step file because the surfaces are joined. I think in the...
  6. I

    How to check if a face 'belongs' to surface

    Iteration is not the problem, my question is different
  7. I

    How to check if a face 'belongs' to surface

    How to check if a face is a sub-surface of a bigger surface ? I have attached an example step file. By iterating over entities I get the following: Found StepShape_OpenShell with name 'Join' Found StepShape_FaceSurface with name 'Join' Found StepShape_FaceSurface with name 'Join' Found...
  8. I

    Import points from step file

    Thank you Natalia for your very detailed explanation! Ok, so for points it is clear what I missed. I got any insights while debugging RWStepRepr_RWConstructiveGeometryRepresentation::ReadStep() but probably I need a deep dive into OCCT source code which I don't have right now...
  9. I

    Import points from step file

    Hello, it seems to me OCC can't handle points from step file. So TopAbs_VERTEX is never found, and something like this never happens: if (shapeTool->IsShape(label)) { TopoDS_Shape shape; shapeTool->GetShape(label, shape); if (shape.ShapeType()...
Top