Skip to content

Commit

Permalink
workaround for beveled text
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo committed Jul 18, 2019
1 parent ff350ad commit 37398f0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 117 deletions.
22 changes: 21 additions & 1 deletion examples/Mentor/06.3.Complex3DText.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
#!/usr/bin/env python
###
# Copyright (c) 2002-2007 Systems in Motion
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

"""
This is an example from the Inventor Mentor,
chapter 6, example 3.
Expand Down Expand Up @@ -50,7 +67,10 @@ def main():

# Choose a font likely to exist.
myFont = SoFont()
myFont.name = "Times" # "Times-Roman"
# times new roman somehow changes the normals of the text and so the beveling
# is done in the wrong directions. Commenting out this line solves this issue here

# myFont.name = "times" # "Times-Roman"
root += myFont

# Specify a beveled cross-section for the text
Expand Down
116 changes: 0 additions & 116 deletions examples/Mentor/06.3.Complex3DText_not_working.py

This file was deleted.

0 comments on commit 37398f0

Please sign in to comment.