Skip to content

Instantly share code, notes, and snippets.

ghedin /
Last active Jan 18, 2018 — 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
ghedin / make_face.cpp
Last active Jul 24, 2017
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();