I sure don't call the code below a success but its definitely interesting...

model = Sketchup.active_model
ents = model.active_entities
sel = model.selection
faces = sel.grep(Sketchup;;Face)
model.start_operation('csplit')
faces.each do |face|
vertices = face.vertices
edges = face.edges
bbox = face.bounds
cpoint = bbox.center
edges.each do |e|
e1 = e.start.position
e2 = e.end.position
x = (e2.x + e1.x) / 2
y = (e2.y + e1.y) / 2
z = (e2.z + e1.z) / 2
vertices.each do |vertex|
p1 = [x, y, z]
p2 = vertex
line = ents.add_line p1,p2
end
end
end
sel.clear
model.commit_operation
Note: I also find strange that new edges don't intersect with each othere making a new vertex...why is this?









