Changes between Version 65 and Version 66 of PythonOcc


Ignore:
Timestamp:
Oct 5, 2016, 10:20:53 AM (8 years ago)
Author:
mtelenta
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PythonOcc

    v65 v66  
    305305}}}
    306306
    307 Risanje različnih tipov robov.
     307=== Risanje različnih tipov robov ===
    308308[[Image(edge_primer.PNG, width=480px, right)]]
    309309{{{
     
    393393}}}
    394394
    395 Risanje prerezane piramide.
     395=== Risanje prerezane piramide ===
    396396[[Image(prerezana_piramida.PNG, width=480px, right)]]
    397397{{{
     
    11561156Ostale funkcije so opisane v http://api.pythonocc.org/OCC.gp.gp_Trsf-class.html
    11571157
     1158=== Prikaz torus modela v brskalniku ===
     1159[[Image(edge_primer.PNG, width=480px, right)]]
     1160{{{
     1161#!/usr/bin/env python
     1162
     1163##Copyright 2009-2014 Thomas Paviot (tpaviot@gmail.com)
     1164##
     1165##This file is part of pythonOCC.
     1166##
     1167##pythonOCC is free software: you can redistribute it and/or modify
     1168##it under the terms of the GNU Lesser General Public License as published by
     1169##the Free Software Foundation, either version 3 of the License, or
     1170##(at your option) any later version.
     1171##
     1172##pythonOCC is distributed in the hope that it will be useful,
     1173##but WITHOUT ANY WARRANTY; without even the implied warranty of
     1174##MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     1175##GNU Lesser General Public License for more details.
     1176##
     1177##You should have received a copy of the GNU Lesser General Public License
     1178##along with pythonOCC.  If not, see <http://www.gnu.org/licenses/>.
     1179
     1180from OCC.Display.WebGl import threejs_renderer
     1181from OCC.BRepPrimAPI import BRepPrimAPI_MakeTorus
     1182
     1183torus_shp = BRepPrimAPI_MakeTorus(20., 10.).Shape()
     1184my_renderer = threejs_renderer.ThreejsRenderer(background_color="#123345")
     1185my_renderer.DisplayShape(torus_shp)
     1186
     1187
     1188}}}
     1189
    11581190= Povezave in navodila za modeliranje z OCCT =
    11591191 * [http://api.pythonocc.org PythonOCC API’s dokumentacija] na spletni strani