Skip to content

Instantly share code, notes, and snippets.

ghedin / make_face.cpp
Last active July 24, 2017 13:43
OCCT - Approximate Surface
View make_face.cpp
// plate builder
GeomPlate_BuildPlateSurface aPlateBuilder(Degree, NbPtsOnCur, NbIter, Tol2d, Tol3d, TolAng, TolCurv);
Standard_Real dmax = 1.1 * aPlateBuilder.G0Error();
TColgp_SequenceOfXY S2d;
TColgp_SequenceOfXYZ S3d;
aPlateBuilder.Disc2dContour(4, S2d);
aPlateBuilder.Disc3dContour(4, 0, S3d);
GeomPlate_PlateG0Criterion Criterion(S2d, S3d, dmax);
const Handle(GeomPlate_Surface)& GPlate = plateBuilder.Surface();
ghedin /
Last active January 18, 2018 16:12 — forked from mcleonard/
A vector class in pure python.
The MIT License (MIT)
Copyright (c) 2015 Mat Leonard
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is