This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qualified Waterfall | |
import Linear | |
import Data.Function ((&)) | |
len = 50 | |
innerR = 25/2 | |
wallT = 0.8 | |
overhang = 1 | |
holeRA = 8.5/2 | |
holeRB = 6/2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ISO-10303-21; | |
HEADER; | |
/* Generated by software containing ST-Developer | |
* from STEP Tools, Inc. (www.steptools.com) | |
*/ | |
/* OPTION: using custom renumber hook */ | |
FILE_DESCRIPTION( | |
/* description */ ('STEP AP242', | |
'CAx-IF Rec.Pracs.---Representation and Presentation of Product Manufa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qualified Waterfall | |
import qualified Waterfall.SVG | |
import qualified Graphics.Svg as Svg | |
import Linear | |
import Control.Lens ((&), (.~)) | |
import Codec.Picture.Types (PixelRGBA8 (..)) | |
somePath :: Waterfall.Path2D | |
somePath = Waterfall.pathFrom zero | |
[ Waterfall.bezierRelative (V2 0 50) (V2 50 50) (V2 50 100) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
{- stack script --resolver lts-22.6 | |
--package linear | |
--package lens | |
--package waterfall-cad | |
--extra-dep waterfall-cad-0.4.0.0 | |
--extra-dep opencascade-hs-0.4.0.0 | |
-} | |
import qualified Waterfall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let compileTagFeeds feedType feedExt feedCompiler = | |
tagsRules tags $ \tag pat -> version feedType $ do | |
route (setExtension feedExt) | |
compile $ do | |
(allPosts, ctx) <- loadPattern pat | |
posts <- recentFirst allPosts | |
let feedCtx = ctx `mappend` postCtx | |
tagDescription <- readTagDescriptionFile' | |
let feedConfiguration = myFeedConfiguration | |
{ feedTitle = feedTitle myFeedConfiguration <> " :: Only " <> tag <> " Posts" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qualified Waterfall | |
import qualified Waterfall.TwoD.Shape as Shape | |
import Waterfall.Internal.Solid (debug) | |
import Linear | |
import Control.Lens ((^.)) | |
import Data.Monoid (Endo (..)) | |
tSlotCrossSection :: Waterfall.Path2D | |
tSlotCrossSection = | |
let oneQuarter = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qualified Waterfall | |
import qualified Waterfall.TwoD.Shape as Shape | |
import Waterfall.Internal.Solid (debug) | |
import Linear | |
import Control.Lens ((^.)) | |
pathFactor :: Double | |
pathFactor = 12.5 | |
heartPath :: Waterfall.Path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qualified Waterfall.TwoD.Path2D as Path2D | |
import qualified Waterfall.TwoD.Shape as Shape | |
import qualified Waterfall.Path as Path | |
import qualified Waterfall.Solids as Solids | |
import qualified Waterfall.Transforms as Transforms | |
import Waterfall.Booleans | |
import Waterfall.Sweep (sweep) | |
import Waterfall.IO (writeSTL) | |
import Linear | |
footR = 20 |
NewerOlder