Nice, I didn't mean to be parameters for the plugin, but just on relation what OCE options are available to you. I think it is ok to have it internally fixed.
Mario ________________________________________ From: Cirilo Bernardo [[email protected]] Sent: 10 March 2016 21:54 To: Mário Luzeiro Cc: KiCad Developers Subject: Re: [Kicad-developers] 3D plugin for STEP/IGES via OCE Hi Mario, OCE has 2 basic form control parameters used in the tesselation: deflection and deflectionAngle. These control the number of segments in an arc and the max. error in NURBS surfaces. There are probably a few more tolerance parameters but I don't know OCE well enough. Configuring plugin parameters is something I haven't addressed yet. I can add a function to the plugin interface to ask kicad for the 3D configuration directory and individual plugins can write default configurations there, but in this case users need to read documentation so they can adjust those parameters if necessary. Anyway, that would be a good first step and in the future we might be able to add GUIs for this task. Many plugins would require no configuration though and the few that do wouldn't have many parameters. Since we don't expect an overwhelming number of plugins, perhaps each class of plugin (at the moment there is only the one class - 3DPlugin) could have a single configuration file which holds the parameters for each plugin type. Anyway, at the moment there is no urgent need for such configuration since the defaults work well anyway. :) - Cirilo On Thu, Mar 10, 2016 at 8:57 PM, Mário Luzeiro <[email protected]<mailto:[email protected]>> wrote: Excellent progress! I believe it will need some discussion on how to integrate the dependency on OCE but hope a good compromise could be found. It is good however that we got something to discuss. What options does OCE offer you when convert the STEP to triangles? (i.e: on relation to quality/ detail of tesselation, materials, etc ?) Mario ________________________________________ From: Kicad-developers [[email protected]<mailto:[email protected]>] on behalf of Cirilo Bernardo [[email protected]<mailto:[email protected]>] Sent: 10 March 2016 09:13 To: KiCad Developers Subject: Re: [Kicad-developers] 3D plugin for STEP/IGES via OCE Sorry, I doubled up on a link and missed the HackRF link: https://drive.google.com/open?id=0By_XTJN-s8aXaTJidzZzOUhxWEk - Cirilo On Thu, Mar 10, 2016 at 8:11 PM, Cirilo Bernardo <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>> wrote: Hi folks, I have a 3D plugin built to support STEP and IGES visualization via OCE and have linked 3 screenshots below. https://drive.google.com/open?id=0By_XTJN-s8aXS1pKSE5uNVp0VG8 https://drive.google.com/open?id=0By_XTJN-s8aXclV4enBueWhnaGM https://drive.google.com/open?id=0By_XTJN-s8aXclV4enBueWhnaGM The HackRF STEP model was created by Maurice via his KiCad StepUP tools for FreeCAD. If people would like this plugin to be pushed into 3d_initial_merge then let me know; I would need to add a CMake option to build it since it depends on OCE and should not be built by default. Just remember that these models will not be visible in 3DViewer until the current 3DViewer has been replaced by one which uses the scenegraph objects from 3d_initial_merge. Mario is making a lot of progress with his 3DViewer branch, so hopefully it won't be too long before we have all the latest 3D visualization codes. :) One note: although the new 3D viewer will be able to directly use the STEP/IGES models (no need to convert to VRML), actual MCAD exports is still a long way away since it depends on the implementation of a plugin system for reading and manipulating the PCB data itself. Thanks to Tom Wlostowski for the initial OCE investigations and his sample c++ code for converting STEP to VRML. - Cirilo _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp

