Skip to content

Instantly share code, notes, and snippets.

View tpaviot's full-sized avatar

Thomas Paviot tpaviot

View GitHub Profile
@tpaviot
tpaviot / gist:7d3a61dfb1a3411068900e084ce4ea71
Created December 18, 2017 18:21
pythreejs pip install . fails
(py3js) D:\Devel\pythreejs>pip install .
Processing d:\devel\pythreejs
Requirement already satisfied: ipywidgets<8,>=7 in d:\miniconda2\envs\py3js\lib\
site-packages (from pythreejs==1.0.0b2)
Requirement already satisfied: ipydatawidgets>=1.1.1 in d:\miniconda2\envs\py3js
\lib\site-packages (from pythreejs==1.0.0b2)
Requirement already satisfied: numpy in d:\miniconda2\envs\py3js\lib\site-packag
es (from pythreejs==1.0.0b2)
Requirement already satisfied: ipython>=4.0.0; python_version >= "3.3" in d:\min
iconda2\envs\py3js\lib\site-packages (from ipywidgets<8,>=7->pythreejs==1.0.0b2)
@tpaviot
tpaviot / gist:b4059aeb2a9554121f52ff887df5ce2f
Created December 18, 2017 18:03
pip install -v --pre pythreejs output
(py3js) D:\Devel>pip install -v --pre pythreejs
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Requirement already satisfied: pythreejs in d:\miniconda2\envs\py3js\lib\site-pa
ckages
Requirement already satisfied: ipywidgets<8,>=7 in d:\miniconda2\envs\py3js\lib\
site-packages (from pythreejs)
Requirement already satisfied: numpy in d:\miniconda2\envs\py3js\lib\site-packag
es (from pythreejs)
Requirement already satisfied: traittypes in d:\miniconda2\envs\py3js\lib\site-p
@tpaviot
tpaviot / gist:6326851
Created August 24, 2013 08:18
db/Standard_Boolean fails to compile on OSX gcc-4.2.1
[ 37%] Building CXX object adm/cmake/TKFillet/CMakeFiles/TKFillet.dir/__/__/__/src/FilletSurf/FilletSurf_InternalBuilder.cxx.o
/Users/thomas/Devel/oce/src/FilletSurf/FilletSurf_InternalBuilder.cxx:421: error: prototype for ‘void FilletSurf_InternalBuilder::PerformSurf(ChFiDS_SequenceOfSurfData&, const Handle_ChFiDS_HElSpine&, const Handle_ChFiDS_Spine&, int, const Handle_BRepAdaptor_HSurface&, const Handle_Adaptor3d_TopolTool&, const Handle_BRepAdaptor_HCurve2d&, const Handle_BRepAdaptor_HSurface&, const Handle_BRepAdaptor_HCurve2d&, unsigned int&, const Handle_BRepAdaptor_HSurface&, const Handle_Adaptor3d_TopolTool&, TopAbs_Orientation, double, double, double, double&, double&, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, const math_Vector&)’ does not match any in class ‘FilletSurf_InternalBuilder’
/Users/thomas/Devel/oce/inc/FilletSurf_InternalBuilder.hxx:161: error: candidates are: virtual void FilletSurf_InternalBuilder::PerformSurf(ChFiDS_SequenceOfSurfData&, const
@tpaviot
tpaviot / gist:4966329
Created February 16, 2013 10:12
Fuse toruses patch
diff --git a/test/BRepAlgoAPI_test/boolean_ops.cpp b/test/BRepAlgoAPI_test/boolean_ops.cpp
index 3d03ac2..84acb16 100644
--- a/test/BRepAlgoAPI_test/boolean_ops.cpp
+++ b/test/BRepAlgoAPI_test/boolean_ops.cpp
@@ -1,7 +1,9 @@
#include <BRepPrimAPI_MakeBox.hxx>
#include <BRepPrimAPI_MakeCylinder.hxx>
#include <BRepPrimAPI_MakeSphere.hxx>
+#include <BRepPrimAPI_MakeTorus.hxx>
#include <BRepAlgoAPI_Cut.hxx>
@tpaviot
tpaviot / CMakeCache.txt
Created April 30, 2012 07:15
oce OSX CMakeCache.txt
# This is the CMakeCache file.
# For build in directory: /Users/thomas/Devel/oce/cmake-build
# It was generated by CMake: /Applications/CMake 2.8-7.app/Contents/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
@tpaviot
tpaviot / gist:1933848
Created February 28, 2012 17:31
scl memmgr OSX fix
diff --git a/src/base/scl_memmgr.cc b/src/base/scl_memmgr.cc
index 304814b..b1a9ae7 100644
--- a/src/base/scl_memmgr.cc
+++ b/src/base/scl_memmgr.cc
@@ -1,7 +1,11 @@
#define SCL_MEMMGR_CC
#include "scl_memmgr.h"
+#if __APPLE__
+#include <malloc/malloc.h>
@tpaviot
tpaviot / clang-report-OCE0.9.0-dev
Created January 17, 2012 06:42
Clang static analyzer for OCE-0.9.0dev
/usr/bin/ranlib: warning for library: Darwin/i386-RelWithDebInfo-64/libgtest.a the table of contents is empty (no object file members in the library define global symbols)
clang-3: warning: -Wl,-search_paths_first: 'linker' input unused when '--analyze' is present
clang-3: warning: -Wl,-headerpad_max_install_names: 'linker' input unused when '--analyze' is present
clang-3: warning: CMakeFiles/sandbox.dir/sandbox.cpp.o: 'linker' input unused when '--analyze' is present
clang-3: warning: ../Darwin/i386-RelWithDebInfo-64/libgtest.a: 'linker' input unused when '--analyze' is present
clang-3: warning: -lpthread: 'linker' input unused when '--analyze' is present
clang-3: warning: argument unused during compilation: '-O2'
clang-3: warning: argument unused during compilation: '-g'
/Users/thomas/Devel/oce/src/FSD/FSD_CmpFile.cxx:402:11: warning: Assigned value is garbage or undefined
*tmpb = c;