I have successfully built OCCT using Cmake, VS Code and Fedora linux 42, but when I try to run draw.sh, I get this error: “couldn't read file ‘/home/winet/Documents/OCCT/build/src/DrawResources/DrawDefault’: no such file or directory”. The problem is that I built OCCT with the “BUILD_RESOURCES” flag
To be able to build the sample code, I added OpenCascade headers as additional include directories to OCCTProxy project like in attached photo 1. Afterwards, I added path of the opencascade .lib files to OCCTProxy project as additional library directories like in attached photo 2 . Finally, I added
Hi, I'm trying to use this command in Draw and I can't work out the format. I see the help info: Draw: > help bzsmooth bzsmooth : bzsmooth cname tol degree option [fic] and from GeomliteTest_ApproxCommands I can see that there are 3 methods/options: -GR, -PR and (unnamed? possibly -VA) method 3. Is
Hello, I am putting together a collection of common things you might want to do in a CAD application and making some proc to handle these tasks. The extract_normals proc make a normal vector from a planar face. the extrude proc builds a prism that is normal to the face. proc extract_normals {faceNam
Hello, I was hoping some one might be able to provide an example of how to add internal edges to a face. currently I am using mkplane to generate a face from a wire. Is there there a way to add more wires to the face directly in the draw environment? Specifically looking to add internal loops to the
Hello, I have been experimenting with the DRAW environment and was attempting to use a proc call. The proc is stored in a file that i am importing with the source command. I think my understanding of the upvar command is somehow flawed. Thanks for any help or hints that point in the right direction.
Hello, I have a curved edge that is visible in the draw environment viewer. Is there any easy way to export a list of points that form the tessellated curve shown in the viewer?
Hello, I was wondering if there was any way in the draw test harness to build a wire with out the edges being in the correct order and ith out the need to reverse some edges. point sketch1_p0 0 0 vertex sketch1_p0 sketch1_p0 point sketch1_p1 58.6605 15.1459 vertex sketch1_p1 sketch1_p1 point sketch1
I have two computers running System76's Pop!_OS; a desktop machine with nvidia graphics and a laptop with intel xe graphics. On the desktop machine, draw works ok; but, on the laptop, every time I issue a 3D draw command (vinit, vdisplay, vsetdispmode, etc.) the terminal window hangs until I move th
Hello all, I've downloaded version 7.8 and 3dpartiy libraries, but I can not start tinspector in draw. When I pload it, it can not find TKToolsDraw.dll, which is not present in downloaded archives. Any thing I can do with that? Thank you.
Hello All, I have a document imported from a step file, it's Xdump looks like this: Draw[19]> Xdump frame ASSEMBLY COMPOUND 0:1:1:1 "HR BEFESTIGUNG" INSTANCE COMPOUND 0:1:1:1:1 (refers to 0:1:1:2) "0000_0000_000_00_--_R---_---_0_REF.1" INSTANCE COMPOUND 0:1:1:1:2 (refers to 0:1:1:3) "1209_1002_400_0
Hi Im trying to build. WebGL sample. I managed to build FreeType and OCCT libraries using emsdk, but I cant build sample itself. While configuring this sample in Cmake-gui I have error message. (both windows ans linux) CMake Error at CMakeLists.txt:33 (find_package): Could not find a package configu
I complied the webgl samples successfully, but when I run it with the vs code live server, the console printed as below. occt-webgl-sample.js:1001 Font_FontMgr, error: unable to find any font! occt-webgl-sample.js:1001 TKOpenGl | Type: Error | ID: 0 | Severity: High | Message: Font 'Courier' is not
When I fuse multiple shapes with "bbop result 1". It often loses shape. bclearobjects bcleartools baddobjects e734Hole baddtools e735Hole e697 e689 e699 e703 e712 e723 e728 e736 e738 bfillds bbop shell-sub-union 1 e728 shape is missing in shell-sub-union.
Hello, I am a beginner and would like to learn how to program CAD software. now for the start. 1) how do I insert the panel? 2) how to make my one line and polygon line draw. I hope someone can help me or where I can find a simple example. thanks in advance
Hi: I wang to make a Shape with screw threads by Opencascade,just like the attached file shows. Would you please give me a C++ example code? Best Regards Author
Greetings to Open CASCADE Forum from an OCCT newbie ... Operating Environment: Linux Debian 9 OpenCASCADE-7.3.0 (built from source using cmake-gui & make) Open CASCADE Tutorial (built from source using Code::Blocks: 0 errors, 0 warnings) Debian Packages Installed as OCCT prerequisites:: apt-get inst
Hello, I am facing a weird issue with the WebGL sample. First off, I have modified the sample as my goal is to load a STEP file into the web viewer. The problem I am having does not occur when I build the sample as is and load a .brep file. Specifically, the issue I am having is that i get Chromes S
I am looking for some help in STL mesh in 3d view. for iges and step it is all working good in v3dviewer, but mesh mode is not supported. Kindly give me some clues on how can I implement a 3d viewer for STL files.? Any help is highly appreciated.
I am new to Opencascade. I have downloaded opencascade 6.7.0 & have build the entire library in visual studio 2010. All the library file are now built in 'C:\OpenCASCADE6.7.0\opencascade-6.7.0\win32\vc10\libd' folder. Besides this the win32 has also has vc9 folder which has built in libraries which
Opening: https://github.com/Open-Cascade-SAS/OCCT-samples-csharp opened tag V7_6_0 Imported into Visual Studio, Added additional Include directories Added Additional Dependencies Added Additional Library Dependencies After this I build the OCCTProxy to test the dependency however it seems that it re
When building the OCC sample jinitviwer for android, available in "opencascade-7.6.0", the build fails and I am confronted with the following error message, telling "libTKJniSample.so" is missing: Build command failed. Error while executing process C:\Users\MASTER\AppData\Local\Android\Sdk\cmake\3.1
Hello. Now I'm testing webgl build (emscripten wasm). But It seems that there is no available font. Font_FontMgr::GetInstance()->InitFontDataBase(); Font_NListOfSystemFont fontList = Font_FontMgr::GetInstance()->GetAvailableFonts(); printf("Start Listing..\n"); for (const auto& font : fontList) { pr
I am trying to deploy the qt Tutorial, I compiled in release mode and put all necessary dlls to deploy more or less all done. But when clicking the exe, it is not loading the icons on tools. They are written in .ts file which is compiled wit qt's translator using -qm and .qm files generated. icons b
When testing MeshVS (Mesh Visualization Service) component with Draw Test Harness, I find meshdispmode command and meshselmode command are not supported. However, both commands are listed in occt_test_harness.pdf. I searched a very old topic which was similar to my concern. It seemed meshselmode com
I was very pleased to find in DRAW the VIS Viewer commands. If I understand well it integrates VTK to speed up the displaying functionalities. Some functions are really useful however I haven't found so far in DRAW based on OCC 7.3 how to change the color of a shape?
I run DRAW on Linux with an open cascade 7.4 Even a very small script like: cd CPP/OCCT-7.4.0-Debian90-64-opt/bin ./draw.sh Hint: use "pload ALL" command to load standard commands Draw[1]> Draw[2]> pload ALL 1 Draw[3]> vinit Driver1/Viewer1/View1 Draw[4]> vertex v0 -3 -2.00116 1.03375 Draw[5]> vdisp
some talking before Hi, guys! Glad you have seen this post! I'm really new to the OCCT, and I get a problem. I am learning the OCCT, and I try to run the sample code in my PC. Tried , failed , sad. Could anyone help me with this annoying issue? main context Here's my code, its almost the same as the
Dear All, I'm searching the way to enable MSAA in WebGL. And I found that NbMsaaSamples works on the OCCT 7.7 (dev) at this article : https://dev.opencascade.org/content/usage-problem-anti-aliasing-webassembly So, I cloned the latest OCCT from Github ( https://github.com/Open-Cascade-SAS/OCCT ) I as
Hello everyone I have created a docker image of wasm sample. You can check it from following link. https://hub.docker.com/r/okanpin/opencascade_wasm_sample I think it is important to do that in every distribution. Docker files can be good guide lines to run source code. Please notify me any opinion
Hi, I'm learning the WebGL Sample. When I test the sample program, It looks that the Line width seems not to work. It draws always with 1.0 thickness. I tested the following. - aisShape->SetWidth(4.0) : Not Work - Handle(Prs3d_LineAspect) aspect = new Prs3d_LineAspect(Quantity_NOC_VIOLETRED3, Aspect
I'm trying to build an application using Qt 6.2.3 with QML and OpenCascade 7.6. I encountered a problem of program crashing just after the start. After several debugging sessions I found that the problem is related with OpenGL as attempts to get current OpenGL context and device weren't succesful (w
Not sure how best to describe, and I fear I've done something stupid, but after successfully building and running the webgl sample once, I now no longer manage to run it correctly: the view remains black, nothing is shown within - no text, no brep, and not the cube on the right! The console output s
Hi, I would like to load a step with color and display it in the context. But I don't know how to put them in the context. I Use STEPCAFControl_Reader in order to read the color in the inputted step but nothing appear : STEPCAFControl_Reader caf_reader; caf_reader.SetColorMode (true); caf_reader.Set
Hi, I have converted the C# Sample project to Visual Studio 2019. When I run the project I get the following error. Any idea? System.IO.FileNotFoundException: 'Could not load file or assembly 'OCCTProxy.dll' or one of its dependencies. The specified module could not be found.' Regards, Author
Hi I am new to opencascade and getting this error when I try to compile the csharp sample solution : error LNK1104: cannot open file 'TKernel.lib' Pl guide how to resolve this. Thanks in advance. --- I have resolved it myself. In OCCTProxy project properties -> Linker -> General -> Additional Librar
Dear developers and users, I have information of a shape in slices that I need to display. The amount of slices can go up to 10k. The way I am doing it now is to represent each slice as a face and build a compound shape with these slices. The compound is added to an AIS_Shape and added to the Contex
Hello Users, I'd like to model a cylinder in which both ends are portion of spherical surface. Is it possible tu cut a cylinder shape with a spherical surface to get that result ? Thanks for your help ! Author
Hi, ı have a problem with selection of objects and highlighting them. For selection in a mode ı do the following code myContext->Deactivate(shapes[i].shape); myContext->Activate(shapes[i].shape, mode); myContext->MoveTo(x, y, myView, true); myContext->Select(); When i choose a mode for example Verte
I need to implement the following approach in my application - load IGES file, get tessellation and some other data for every element: - vertices and faces, - lines, - circles, - object name, - object color. How to get the coordinate value of each graphic element? For example, the start and end coor
i downloaded opencascade-7.4.0.tgz onto linux devuan and built it with make. i can run draw.sh and the tcl sample works well with draw. but i cannot build the qt tutorial sample as shown on the screenshot attached.
Hello, I would like to evaluate the import for some gltf and glb files in open cascade. I saw that in TKRWMesh module there is an interface for reading gltf (not sure if glb is suported). Is there any example in open cascade sources of its usage? Can you provide some code snippet for that? Looking a
I am attempting to create a Qt application in C++ which incorporates a 3D OCC visualization. I am new to OpenCascade and Qt and would like to put the visualization in a frame or widget, so that I can incorprate it into a layout. Does anyone know what I can do to get a simple 3D visualization to work
I would like to add a floor having, with alternating black and white tiles, so basically showing like a chess board. Input parameters are tile size and number of tiles in each direction. I was thinking of creating a mesh (BRepMeshData_Model ) and use BRepBuilderAPI_MakeFace with AddFace? How can I s
Hello I am using FreeCAD source file to learn about FreeCAD. There In the AppPartpy.cpp File i saw a function name Makebox(). In that function, BRepPrimAPI_MakeBox mkBox(gp_Ax2(p,d), length, width, height); TopoDS_Shape ResultShape = mkBox.Shape(); Do anyone have full example with all the header fil
Hello everyone, I do not know where I can download the locate_data_file file referenced in the test example under the occt7.4.0 tests folder. For example, the following locate_data_file CCH_001_ahdb.rle file.Thank you all restore [locate_data_file CCH_001_ahdb.rle] a sewing result $ tol a checkmaxto
hello,I'm new guy. I find open cascade have a csharp wrapper . I want to know Does it have all the functions in c++. because I don't want to study c++.
Hi everyone, I am trying to make a surface roughness from a surface( TopoDS_Face / or Geom_Surface ). Is there any idea where should I start? Thank you very much, I really appreciate your help!
Following the previous thread ( https://dev.opencascade.org/index.php?q=node/1284 ), i was able to compile the Sample\MFC projects. It goes well after following the fix in previous thread. The issue is that executables (.exe files)(all of them) cannot be independent run from windows explorer or term
While building Sample projects from the path opencascade-7.3.0\samples\mfc\occtdemo, compilation error shows the following message: 'Cannot open include file: 'Graphic3d_WNTGraphicDevice.hxx': No such file or directory OCCDemo_Presentation.cpp' This header file is included in StdAfx file, which is p
Hello everybody, can you use Open Cascade in ASP.NET MVC or Blazor projects? If so, who has an example of this? If not, what other options are there to use Open Cascade in web programming? Many thanks in advance. Author
I installed OpenCASCADE DRAWEXE test hardness today and try to start with the example given at OpenCASCADE site! I started as follow Draw[1]> Draw[2]> av2d Draw[3]> circle c 0 0 1 0 5 invalid command name "circle" I got this error, invalid command name "circle". Can anybody tell me the reason! I am