I am trying to get an outline on a simple building color. How would I specify a outline color and thickness in a CGA rule. Any help would be great.
Here is a sample of what I have now for making a building a color.
/** * File: Gray.cga
* Created: 28 Aug
* Author: MPG
*/ version "2016.0"
@Location(-70,-277)
attr colorValue=0
Shape --> color("#ffffff")
Do a component split with edges and faces. Like
Lot -->
extrude(20)
comp(f){all: walls}
comp(e){all: edges}
Then, to specify the edge thickness:
const edge_width = 0.1
edges -->
primitiveCube
s('1, edge_width, edge_width)
center(yz)
You can use a cylinder instead of a cube if you want rounder edges.