To make a Geom_XXSurface using GeomFill_XXX, you need the surface generator, the approximate calculator, and finally the Geom_XXSurface created with calculated parameters.
What is the decision and consideration behind breaking surface creation into these three procedures? It makes the program...
I looked over the Foundation Classes and found that Standard_Persistent class is labeled obsolete. So the question is what is the replacement for it? Is it OCAF?
so Prs3d_Presentation is presenting my shape on view, I want to alter the graphic.
The way I took is by altering the shape by its dimensions with builder API. To do so I need the shape back from Prs3d_Presentation. How could I do so? Or is there a way to change Graphic3D_Structure directly, not...
So I changed the env and lib path of TKIVtk and TKIVtkDraw to compile OCC 7.6 for VTK 9.2.2 version. OCC compiles and testing it with vtk works. However when I wanted to use Draw, it throws the error of not able to find TKIVtkDraw.dll. The dll is well in the bin and bind of opencascade folder...
I tried lesson 2 with OCC 7.6.0 and vtk 9.2.2, the newest releases.
It crashes at "mapper->SetInputConnection(occSource->GetOutputPort());" saying access violation at vtkInformationVector GetNumerOfInformationObjects()
The reason I think maybe because OCC is using vtkCommonCore-6.1.dll...
I used BRepBuilderAPI_MakeEdge to create a line shape and would like to set its display thickness?
gp_Pnt P1 = myStartPoint->Pnt();
gp_Pnt P2 = myEndPoint->Pnt();
Handle(Geom_Line) myComponent = new Geom_Line(P1, gp_Dir(P2.XYZ() - P1.XYZ()));
Standard_Real dist =...
I involve OCC libraries with my executable. I have added the lib libd and inc directory and set the Environment PATH shown below, according to OCC Installation and Build instructions. The problem is while it compiles, the exe keep popping occ external dlls not found such as FreeImage.dll and...
So for my custom AIS_Shape, my overridden Compute is just a simple TopoDS_Wire.
In my overridden ComputeSelection I try to add sensitive entity for the wire so that it will be selectable.
this is what I did:
void MyAisLine::ComputeSelection(const Handle(SelectMgr_Selection)& theSel, const...
I call UpdateTransformation() to set the global position of the object after drag within the overridden ProcessDragging(), but strange is that its attached EntityOwner seems to move at different pace than the AIS_Object.
Standard_Boolean BIM_InteractiveObject::ProcessDragging(const...
What I did is creating a InteractiveObject class, the BIM_InteractiveObject, inhereting AIS_Shape. I override the virtual method ProcessDragging(...) to enable mouse dragging object interaction. The interaction is done by setting the local transformation of the selected BIM_InteractiveObject...
According to the OCC example here, MyAisObject is a inherent class of AIS_InteractiveObject.
What I am trying to do is get the TopoDS_Shape from a MyAisObject class object, which should be the same as the one made in Compute() member function of MyAisObject class.
Now, I cannot directly...