/usr/share/games/adanaxisgpl/mushruby/MushBasePrism.rb is in adanaxisgpl-data 1.2.5.dfsg.1-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | #%Header {
##############################################################################
#
# File data-adanaxis/mushruby/MushBasePrism.rb
#
# Author Andy Southgate 2006-2007
#
# This file contains original work by Andy Southgate. The author and his
# employer (Mushware Limited) irrevocably waive all of their copyright rights
# vested in this particular version of this file to the furthest extent
# permitted. The author and Mushware Limited also irrevocably waive any and
# all of their intellectual property rights arising from said file and its
# creation that would otherwise restrict the rights of any party to use and/or
# distribute the use of, the techniques and methods used herein. A written
# waiver can be obtained via http://www.mushware.com/.
#
# This software carries NO WARRANTY of any kind.
#
##############################################################################
#%Header } HIbSwncyIsecAUjPM4fu7Q
# $Id: MushBasePrism.rb,v 1.4 2007/03/13 21:45:01 southa Exp $
# $Log: MushBasePrism.rb,v $
# Revision 1.4 2007/03/13 21:45:01 southa
# Release process
#
# Revision 1.3 2006/08/01 17:21:11 southa
# River demo
#
# Revision 1.2 2006/08/01 13:41:06 southa
# Pre-release updates
#
require 'MushBase.rb'
# Other methods provided by MushMeshRubyBasePrism.cpp
class MushBasePrism < MushBase
# Class: MushBasePrism
#
# Description:
#
# This object is used as a base shape for a <MushMesh> object, and provides a prism
# based on a regular polygon. A 2D polygon is created with the requested number of sides,
# within a circle of radius 0.5. This polygon is extruded to produce a 3D prism,
# and that 3D prism is again extruded to generate the 4D prism.
#
# Face numbering is as follows
#
# 0 - w = -0.5
# 1 - w = +0.5
# 2 - z = -0.5
# 3 - z = +0.5
# 4 - x = +k
# 5..(order+3) - rotating anticlockwise in the xy plane
#
# Example for order = 4
#
# 5 - y = +k
# 6 - x = -k
# 7 - y = -k
#
# where k becomes 0.5/sqrt(2) to contain the square within radius 0.5.
#
# Method: new
#
# Creates a BasePrism object, ready to add to a mesh.
#
# Parameters:
#
# order - Number of sides of the initial polygon
#
# The parameter can be supplied as a single value or hash
#
# Returns:
#
# New MushBasePrism object
#
# Default:
#
# There is no default constructor. The order parameter must be provided.
#
# Example:
#
# (example)
# baseprism1 = MushBasePrism.new(5)
# baseprism2 = MushBasePrism.new(:order => 5)
# (end)
#
# Group: Links
#- Wrapper file:doxygen/class_mush_mesh_ruby_base_prism.html
#- Implemetation file:doxygen/class_mush_mesh_library_prism.html
end
|